Module: wine Branch: master Commit: b59153997e28a445511743cf9c529650d066f056 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b59153997e28a445511743cf9c...
Author: Marcus Meissner marcus@jet.franken.de Date: Tue Oct 2 11:32:37 2007 +0200
pdh: Removed superflous NULL ptr check.
---
dlls/pdh/pdh_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c index c5117bf..49d0a33 100644 --- a/dlls/pdh/pdh_main.c +++ b/dlls/pdh/pdh_main.c @@ -482,7 +482,7 @@ static DWORD CALLBACK collect_query_thread( void *arg ) if (WaitForSingleObject( stop, interval ) != WAIT_TIMEOUT) ExitThread( 0 );
EnterCriticalSection( &pdh_handle_cs ); - if (!query || query->magic != PDH_MAGIC_QUERY) + if (query->magic != PDH_MAGIC_QUERY) { LeaveCriticalSection( &pdh_handle_cs ); ExitThread( PDH_INVALID_HANDLE );