ntdll: Make msync() asynchronous in NtFlushVirtualMemory (resubmit with real name)

Alexandre Julliard julliard at winehq.org
Mon Mar 11 15:23:15 CDT 2013


Mathis Beer <default_357-line at yahoo.de> writes:

> diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
> index a99bca4..e4f2bb6 100644
> --- a/dlls/ntdll/virtual.c
> +++ b/dlls/ntdll/virtual.c
> @@ -62,6 +62,10 @@ WINE_DECLARE_DEBUG_CHANNEL(module);
>  #define MS_SYNC 0
>  #endif
>  
> +#ifndef MS_ASYNC
> +#define MS_ASYNC 1
> +#endif

That's questionable, there's no reason the value would be 1. We defined
MS_SYNC to 0 on the theory that it's better to pass 0 than making up
values, but probably not calling the function at all would be
preferable.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list