psapi: GetPerformanceInfo() calls down to the wrong ntdll function.
Found by sparse.
Michael Stefaniuc
mstefani at redhat.de
Tue Jun 5 18:09:08 CDT 2007
Sparse complained:
dlls/psapi/psapi_main.c:486:62: warning: mixing different enum types
dlls/psapi/psapi_main.c:486:62: int [signed] enum _SYSTEM_INFORMATION_CLASS versus
dlls/psapi/psapi_main.c:486:62: int [signed] enum _PROCESSINFOCLASS
---
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 8dae58a..7b1588b 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)
{
--
1.5.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070606/87a7e1b4/attachment.pgp
More information about the wine-patches
mailing list