Fixed #4793: Return correct file handle for existing directory
This commit is contained in:
parent
dd26659ab0
commit
8b8e85271c
@ -864,7 +864,7 @@ HANDLE FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData)
|
||||
if (isDir)
|
||||
{
|
||||
pFileSearch->lpPath = _strdup(lpFileName);
|
||||
pFileSearch->lpPattern = _strdup("*");
|
||||
pFileSearch->lpPattern = _strdup(".");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user