FindFirstFileExW

Andreas Mohr andi at rhlx01.fht-esslingen.de
Tue Apr 1 09:10:06 CST 2003


On Tue, Apr 01, 2003 at 03:42:49PM +0100, Mike Hearn wrote:
> Tested on XP.
> 
> ChangeLog
> - Correct the error code returned when a file does not exist
> 
> -- 
> Mike Hearn <m.hearn at signal.qinetiq.com>
> QinetiQ - Malvern Technology Center

> --- files/dos_fs.c	2003-02-14 20:27:11.000000000 +0000
> +++ ../wine/files/dos_fs.c	2003-04-01 15:38:30.000000000 +0100
> @@ -1984,7 +1984,7 @@
>            if (!FindNextFileW( handle, data ))
>            {
>                FindClose( handle );
> -              SetLastError( ERROR_NO_MORE_FILES );
> +              SetLastError( ERROR_FILE_NOT_FOUND );
That sounds awfully much like the already pretty well-known Win9x vs. NT
incompatibility in file not found GetLastError values.
Please make sure this is indeed what we should do; I really think
you'd break some Win9x programs when simply doing such a general replacement.

As such, I suspect you did not "Correct" the error code returned;
instead, you only fixed it "to please the other half" of Windows programs.
;-)

-- 
Help prevent Information Technology Fascism! - before it's too late...
http://www.againsttcpa.com



More information about the wine-patches mailing list