mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
RetVal is in bytes, so check against MAX_PATH in bytes
svn path=/trunk/; revision=17760
This commit is contained in:
parent
1dc718065f
commit
b1e0054bee
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue