mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
RetVal is in bytes, so check against MAX_PATH in bytes
svn path=/trunk/; revision=17760
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user