mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
Return INVALID_FILE_ATTRIBUTES when no filename is passed
svn path=/trunk/; revision=42617
This commit is contained in:
parent
dd9eabe375
commit
d6e84af5f7
1 changed files with 2 additions and 2 deletions
|
@ -996,9 +996,9 @@ GetFileAttributesA(LPCSTR lpFileName)
|
|||
{
|
||||
WIN32_FILE_ATTRIBUTE_DATA FileAttributeData;
|
||||
PWSTR FileNameW;
|
||||
BOOL ret;
|
||||
BOOL ret;
|
||||
|
||||
if (!(FileNameW = FilenameA2W(lpFileName, FALSE)))
|
||||
if (!lpFileName || !(FileNameW = FilenameA2W(lpFileName, FALSE)))
|
||||
return INVALID_FILE_ATTRIBUTES;
|
||||
|
||||
ret = GetFileAttributesExW(FileNameW, GetFileExInfoStandard, &FileAttributeData);
|
||||
|
|
Loading…
Reference in a new issue