Sebastian Lackner : krnl386.exe16: Ignore access denied error when flushing file.
Module: wine Branch: master Commit: 59103375b9d54d2e3713a042fdb06a4d5531ef28 URL: http://source.winehq.org/git/wine.git/?a=commit;h=59103375b9d54d2e3713a042fd... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Sat Mar 11 07:26:34 2017 +0100 krnl386.exe16: Ignore access denied error when flushing file. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/krnl386.exe16/int21.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/krnl386.exe16/int21.c b/dlls/krnl386.exe16/int21.c index 605c945..308fc49 100644 --- a/dlls/krnl386.exe16/int21.c +++ b/dlls/krnl386.exe16/int21.c @@ -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;
participants (1)
-
Alexandre Julliard