From 22aed3267b27667e87dc7654f838621abc0337ad Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 26 Jan 2008 09:43:10 +0100 Subject: [PATCH] pdh: Fixed wrong condition. --- dlls/pdh/pdh_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c index a7aa21b6b7b..d78af4a433c 100644 --- a/dlls/pdh/pdh_main.c +++ b/dlls/pdh/pdh_main.c @@ -873,7 +873,7 @@ PDH_STATUS WINAPI PdhLookupPerfNameByIndexW( LPCWSTR machine, DWORD index, LPWST return PDH_CSTATUS_NO_MACHINE; } - if (!buffer && !size) return PDH_INVALID_ARGUMENT; + if (!buffer || !size) return PDH_INVALID_ARGUMENT; if (!index) return ERROR_SUCCESS; for (i = 0; i < sizeof(counter_sources) / sizeof(counter_sources[0]); i++)