Commit in reactos/ntoskrnl/ps on MAIN
process.c+2-21.156 -> 1.157
- Fix pointer arithmetic on FileName variable in NtCreateProcess (spotted by Arty).

reactos/ntoskrnl/ps
process.c 1.156 -> 1.157
diff -u -r1.156 -r1.157
--- process.c	21 Nov 2004 21:09:43 -0000	1.156
+++ process.c	24 Nov 2004 18:13:18 -0000	1.157
@@ -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 @@
 	  }
 
         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'\\')
CVSspam 0.2.8