krnl386.exe: Fix last error check for DOS compatibility hack.
Alexandre Julliard
julliard at winehq.org
Thu Jul 29 10:48:56 CDT 2010
Andrew Nguyen <anguyen at codeweavers.com> writes:
> @@ -1092,7 +1092,7 @@ static BOOL INT21_CreateFile( CONTEXT86 *context,
> winMode, winAttributes, 0 );
> /* DOS allows to open files on a CDROM R/W */
> if( winHandle == INVALID_HANDLE_VALUE &&
> - GetLastError()== ERROR_WRITE_PROTECT) {
> + GetLastError() == ERROR_ACCESS_DENIED) {
You should keep the old error too.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list