mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Return INVALID_FILE_ATTRIBUTES when no filename is passed
svn path=/trunk/; revision=42617
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user