mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Fix pointer arithmetic on FileName variable in NtCreateProcess (spotted by Arty).
svn path=/trunk/; revision=11798
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: process.c,v 1.156 2004/11/21 21:09:43 weiden Exp $
|
||||
/* $Id: process.c,v 1.157 2004/11/24 18:13:18 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
@@ -875,7 +875,7 @@ NtCreateProcess(OUT PHANDLE ProcessHandle,
|
||||
}
|
||||
|
||||
FileName = SectionObject->FileObject->FileName;
|
||||
szSrc = (PWCHAR)(FileName.Buffer + FileName.Length - 1);
|
||||
szSrc = (PWCHAR)(FileName.Buffer + (FileName.Length / sizeof(WCHAR)) - 1);
|
||||
while(szSrc >= FileName.Buffer)
|
||||
{
|
||||
if(*szSrc == L'\\')
|
||||
|
||||
Reference in New Issue
Block a user