From 1fc2142a280455a1eff90fff8b4ebedf49b416e0 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 4 Apr 2003 22:05:10 +0000 Subject: [PATCH] Correct the error code returned when a file does not exist. --- files/dos_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/dos_fs.c b/files/dos_fs.c index fce3ff8ddbc..90f77e8619d 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -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;