RetVal is in bytes, so check against MAX_PATH in bytes
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;