ntdll: Change NtQuerySystemInformation to return 100ns ticks for SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION info class (try 2)

Alexandre Julliard julliard at winehq.org
Fri Dec 10 09:49:31 CST 2010


Louis Lenders <xerox_xerox2000 at yahoo.co.uk> writes:

> diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
> index 7ad56e4..d9f0398 100644
> --- a/dlls/ntdll/nt.c
> +++ b/dlls/ntdll/nt.c
> @@ -64,6 +64,8 @@
>  #include <mach/vm_map.h>
>  #endif
>  
> +#define USER_HZ_TO_TICKSPERSEC(x) (ULONGLONG)10000000 * x / sysconf(_SC_CLK_TCK)

Don't hide sysconf in a macro, call it just once where needed.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list