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

This commit is contained in:
Mike Hearn 2003-04-04 22:05:10 +00:00 committed by Alexandre Julliard
parent ceb86a90f8
commit 1fc2142a28
1 changed files with 1 additions and 1 deletions

View File

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