RetVal is in bytes, so check against MAX_PATH in bytes
authorGé van Geldorp <ge@gse.nl>
Fri, 9 Sep 2005 10:22:40 +0000 (10:22 +0000)
committerGé van Geldorp <ge@gse.nl>
Fri, 9 Sep 2005 10:22:40 +0000 (10:22 +0000)
svn path=/trunk/; revision=17760

reactos/lib/kernel32/process/create.c

index ccbcd5a..23fd7d1 100644 (file)
@@ -973,7 +973,7 @@ GetAppName:
         }
                 
         /* 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;