Michael Stefaniuc : psapi: GetPerformanceInfo() calls down to the wrong ntdll function. Found by sparse.
Module: wine Branch: master Commit: 9e4883e2b8f077f82f97059da31930d1e979635a URL: http://source.winehq.org/git/wine.git/?a=commit;h=9e4883e2b8f077f82f97059da3... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Jun 6 01:09:08 2007 +0200 psapi: GetPerformanceInfo() calls down to the wrong ntdll function. Found by sparse. --- dlls/psapi/psapi_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/psapi/psapi_main.c b/dlls/psapi/psapi_main.c index 0313475..cadc876 100644 --- a/dlls/psapi/psapi_main.c +++ b/dlls/psapi/psapi_main.c @@ -483,7 +483,7 @@ BOOL WINAPI GetPerformanceInfo( PPERFORMANCE_INFORMATION info, DWORD size ) TRACE( "(%p, %d)\n", info, size ); - status = NtQueryInformationProcess( GetCurrentProcess(), SystemPerformanceInformation, info, size, NULL ); + status = NtQuerySystemInformation( SystemPerformanceInformation, info, size, NULL ); if (status) {
participants (1)
-
Alexandre Julliard