mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Reverting r33635
svn path=/trunk/; revision=33636
This commit is contained in:
parent
7184323272
commit
1fe8b5d775
1 changed files with 13 additions and 18 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/mm/procsup.c
|
||||
* FILE: ntoskrnl/mm/process.c
|
||||
* PURPOSE: Memory functions related to Processes
|
||||
*
|
||||
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
|
||||
|
@ -615,11 +615,8 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
|
|||
/* Determine the image file name and save it to EPROCESS */
|
||||
DPRINT("Getting Image name\n");
|
||||
FileName = SectionObject->FileObject->FileName;
|
||||
szSrc = (PWCHAR)((PCHAR)FileName.Buffer + FileName.Length);
|
||||
if (FileName.Buffer)
|
||||
{
|
||||
/* Loop the file name*/
|
||||
while (szSrc > FileName.Buffer)
|
||||
szSrc = (PWCHAR)(FileName.Buffer + FileName.Length);
|
||||
while (szSrc >= FileName.Buffer)
|
||||
{
|
||||
/* Make sure this isn't a backslash */
|
||||
if (*--szSrc == OBJ_NAME_PATH_SEPARATOR)
|
||||
|
@ -634,7 +631,6 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
|
|||
lnFName++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Copy the to the process and truncate it to 15 characters if necessary */
|
||||
szDest = Process->ImageFileName;
|
||||
|
@ -724,4 +720,3 @@ MmDeleteProcessAddressSpace(PEPROCESS Process)
|
|||
DPRINT("Finished MmReleaseMmInfo()\n");
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue