Alexandre Julliard : ntdll: Don' t wait for writes to complete in NtFlushVirtualMemory.
Module: wine Branch: master Commit: 693d6e48d775ba29a803ee04c344c4ba1e7cb274 URL: http://source.winehq.org/git/wine.git/?a=commit;h=693d6e48d775ba29a803ee04c3... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Apr 24 14:33:26 2014 +0200 ntdll: Don't wait for writes to complete in NtFlushVirtualMemory. --- dlls/ntdll/virtual.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index e93ce2e..8d3539a 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -58,10 +58,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(virtual); WINE_DECLARE_DEBUG_CHANNEL(module); -#ifndef MS_SYNC -#define MS_SYNC 0 -#endif - #ifndef MAP_NORESERVE #define MAP_NORESERVE 0 #endif @@ -2734,7 +2730,9 @@ NTSTATUS WINAPI NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr, { if (!*size_ptr) *size_ptr = view->size; *addr_ptr = addr; - if (msync( addr, *size_ptr, MS_SYNC )) status = STATUS_NOT_MAPPED_DATA; +#ifdef MS_ASYNC + if (msync( addr, *size_ptr, MS_ASYNC )) status = STATUS_NOT_MAPPED_DATA; +#endif } server_leave_uninterrupted_section( &csVirtual, &sigset ); return status;
participants (1)
-
Alexandre Julliard