Sebastian Lackner : krnl386.exe16: Ignore access denied error when flushing file.
Alexandre Julliard
julliard at winehq.org
Mon Mar 13 15:40:32 CDT 2017
Module: wine
Branch: master
Commit: 59103375b9d54d2e3713a042fdb06a4d5531ef28
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59103375b9d54d2e3713a042fdb06a4d5531ef28
Author: Sebastian Lackner <sebastian at 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 at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list