RetVal is in bytes, so check against MAX_PATH in bytes

svn path=/trunk/; revision=17760
This commit is contained in:
Gé van Geldorp 2005-09-09 10:22:40 +00:00
parent 1dc718065f
commit b1e0054bee

View 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;