Commit 1fc2142a authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard

Correct the error code returned when a file does not exist.

parent ceb86a90
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment