Correct the error code returned when a file does not exist.
This commit is contained in:
parent
ceb86a90f8
commit
1fc2142a28
|
@ -1984,7 +1984,7 @@ HANDLE WINAPI FindFirstFileExW(
|
|||
if (!FindNextFileW( handle, data ))
|
||||
{
|
||||
FindClose( handle );
|
||||
SetLastError( ERROR_NO_MORE_FILES );
|
||||
SetLastError( ERROR_FILE_NOT_FOUND );
|
||||
break;
|
||||
}
|
||||
return handle;
|
||||
|
|
Loading…
Reference in New Issue