Alexandre Julliard : ntdll: Don' t wait for writes to complete in NtFlushVirtualMemory.

Alexandre Julliard julliard at winehq.org
Thu Apr 24 13:43:59 CDT 2014


Module: wine
Branch: master
Commit: 693d6e48d775ba29a803ee04c344c4ba1e7cb274
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=693d6e48d775ba29a803ee04c344c4ba1e7cb274

Author: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list