Michael Stefaniuc : psapi: GetPerformanceInfo()
calls down to the wrong ntdll function. Found by sparse.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 6 07:41:55 CDT 2007
Module: wine
Branch: master
Commit: 9e4883e2b8f077f82f97059da31930d1e979635a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9e4883e2b8f077f82f97059da31930d1e979635a
Author: Michael Stefaniuc <mstefani at 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)
{
More information about the wine-cvs
mailing list