[ros-diffs] [gvg] 17760: RetVal is in bytes,
so check against MAX_PATH in bytes
gvg at svn.reactos.com
gvg at svn.reactos.com
Fri Sep 9 12:22:45 CEST 2005
RetVal is in bytes, so check against MAX_PATH in bytes
Modified: trunk/reactos/lib/kernel32/process/create.c
_____
Modified: trunk/reactos/lib/kernel32/process/create.c
--- trunk/reactos/lib/kernel32/process/create.c 2005-09-09 09:50:58 UTC
(rev 17759)
+++ trunk/reactos/lib/kernel32/process/create.c 2005-09-09 10:22:40 UTC
(rev 17760)
@@ -973,7 +973,7 @@
}
/* Now check if we have a file, and if the path size is OK */
- if (!RetVal || RetVal >= (MAX_PATH / sizeof(WCHAR)))
+ if (!RetVal || RetVal >= (MAX_PATH * sizeof(WCHAR)))
{
ULONG PathType;
HANDLE hFile;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050909/4d97d059/attachment.html
More information about the Ros-diffs
mailing list