Reverting r33635

svn path=/trunk/; revision=33636
This commit is contained in:
KJK::Hyperion 2008-05-22 13:37:27 +00:00
parent 7184323272
commit 1fe8b5d775

View file

@ -1,7 +1,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/procsup.c * FILE: ntoskrnl/mm/process.c
* PURPOSE: Memory functions related to Processes * PURPOSE: Memory functions related to Processes
* *
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net) * PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
@ -615,24 +615,20 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
/* Determine the image file name and save it to EPROCESS */ /* Determine the image file name and save it to EPROCESS */
DPRINT("Getting Image name\n"); DPRINT("Getting Image name\n");
FileName = SectionObject->FileObject->FileName; FileName = SectionObject->FileObject->FileName;
szSrc = (PWCHAR)((PCHAR)FileName.Buffer + FileName.Length); szSrc = (PWCHAR)(FileName.Buffer + FileName.Length);
if (FileName.Buffer) while (szSrc >= FileName.Buffer)
{ {
/* Loop the file name*/ /* Make sure this isn't a backslash */
while (szSrc > FileName.Buffer) if (*--szSrc == OBJ_NAME_PATH_SEPARATOR)
{ {
/* Make sure this isn't a backslash */ /* If so, stop it here */
if (*--szSrc == OBJ_NAME_PATH_SEPARATOR) szSrc++;
{ break;
/* If so, stop it here */ }
szSrc++; else
break; {
} /* Otherwise, keep going */
else lnFName++;
{
/* Otherwise, keep going */
lnFName++;
}
} }
} }
@ -724,4 +720,3 @@ MmDeleteProcessAddressSpace(PEPROCESS Process)
DPRINT("Finished MmReleaseMmInfo()\n"); DPRINT("Finished MmReleaseMmInfo()\n");
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
} }