Fixed #4793: Return correct file handle for existing directory

This commit is contained in:
Armin Novak 2018-08-13 13:17:56 +02:00
parent dd26659ab0
commit 8b8e85271c

View File

@ -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
{