mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
Patch by Alex Ionescu <alex.ionescu@reactos.org>
See issue #3054 for more details. svn path=/trunk/; revision=33637
This commit is contained in:
parent
1fe8b5d775
commit
dc75130891
1 changed files with 18 additions and 13 deletions
|
@ -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/process.c
|
* FILE: ntoskrnl/mm/procsup.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,20 +615,24 @@ 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)(FileName.Buffer + FileName.Length);
|
szSrc = (PWCHAR)((PCHAR)FileName.Buffer + FileName.Length);
|
||||||
while (szSrc >= FileName.Buffer)
|
if (FileName.Buffer)
|
||||||
{
|
{
|
||||||
/* Make sure this isn't a backslash */
|
/* Loop the file name*/
|
||||||
if (*--szSrc == OBJ_NAME_PATH_SEPARATOR)
|
while (szSrc > FileName.Buffer)
|
||||||
{
|
{
|
||||||
/* If so, stop it here */
|
/* Make sure this isn't a backslash */
|
||||||
szSrc++;
|
if (*--szSrc == OBJ_NAME_PATH_SEPARATOR)
|
||||||
break;
|
{
|
||||||
}
|
/* If so, stop it here */
|
||||||
else
|
szSrc++;
|
||||||
{
|
break;
|
||||||
/* Otherwise, keep going */
|
}
|
||||||
lnFName++;
|
else
|
||||||
|
{
|
||||||
|
/* Otherwise, keep going */
|
||||||
|
lnFName++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -720,3 +724,4 @@ MmDeleteProcessAddressSpace(PEPROCESS Process)
|
||||||
DPRINT("Finished MmReleaseMmInfo()\n");
|
DPRINT("Finished MmReleaseMmInfo()\n");
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue