Commit 4e49518a authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

krnl386.exe: Fix last error check for DOS compatibility hack.

parent 5cc0d1ee
......@@ -1092,7 +1092,8 @@ 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_WRITE_PROTECT ||
GetLastError() == ERROR_ACCESS_DENIED)) {
winHandle = CreateFileW( pathW, winAccess & ~GENERIC_WRITE,
winSharing, NULL, winMode, winAttributes, 0 );
}
......
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