From: Ričardas Barkauskas Subject: ntdll: make msync() call asynchronous in NtFlushVirtualMemory (try 4) Message-Id: <5354E978.7080200@codeweavers.com> Date: Mon, 21 Apr 2014 12:48:40 +0300 Based on patch by Mathis Beer. It's quite simillar to his 3.5 version, so I guess I need a pointer for what could be wrong with this? --- dlls/ntdll/virtual.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index e93ce2e..c6bafc2 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -58,8 +58,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(virtual); WINE_DECLARE_DEBUG_CHANNEL(module); -#ifndef MS_SYNC -#define MS_SYNC 0 +#ifndef MS_ASYNC +#define MS_ASYNC 0 #endif #ifndef MAP_NORESERVE @@ -2734,7 +2734,7 @@ 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; + if (msync( addr, *size_ptr, MS_ASYNC )) status = STATUS_NOT_MAPPED_DATA; } server_leave_uninterrupted_section( &csVirtual, &sigset ); return status;