Commit 59103375 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

krnl386.exe16: Ignore access denied error when flushing file.

parent 413e27ef
......@@ -5282,7 +5282,8 @@ void WINAPI DOSVM_Int21Handler( CONTEXT *context )
case 0x68: /* "FFLUSH" - COMMIT FILE */
TRACE( "FFLUSH - handle %d\n", BX_reg(context) );
if (!FlushFileBuffers( DosFileHandleToWin32Handle(BX_reg(context)) ))
if (!FlushFileBuffers( DosFileHandleToWin32Handle(BX_reg(context)) ) &&
GetLastError() != ERROR_ACCESS_DENIED)
bSetDOSExtendedError = TRUE;
break;
......@@ -5307,7 +5308,8 @@ void WINAPI DOSVM_Int21Handler( CONTEXT *context )
case 0x6a: /* COMMIT FILE */
TRACE( "COMMIT FILE - handle %d\n", BX_reg(context) );
if (!FlushFileBuffers( DosFileHandleToWin32Handle(BX_reg(context)) ))
if (!FlushFileBuffers( DosFileHandleToWin32Handle(BX_reg(context)) ) &&
GetLastError() != ERROR_ACCESS_DENIED)
bSetDOSExtendedError = TRUE;
break;
......
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