krnl386.exe: Fix last error check for DOS compatibility hack.
This commit is contained in:
parent
5cc0d1ee80
commit
4e49518a38
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue