Commit 22aed326 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

pdh: Fixed wrong condition.

parent c46327b4
...@@ -873,7 +873,7 @@ PDH_STATUS WINAPI PdhLookupPerfNameByIndexW( LPCWSTR machine, DWORD index, LPWST ...@@ -873,7 +873,7 @@ PDH_STATUS WINAPI PdhLookupPerfNameByIndexW( LPCWSTR machine, DWORD index, LPWST
return PDH_CSTATUS_NO_MACHINE; return PDH_CSTATUS_NO_MACHINE;
} }
if (!buffer && !size) return PDH_INVALID_ARGUMENT; if (!buffer || !size) return PDH_INVALID_ARGUMENT;
if (!index) return ERROR_SUCCESS; if (!index) return ERROR_SUCCESS;
for (i = 0; i < sizeof(counter_sources) / sizeof(counter_sources[0]); i++) for (i = 0; i < sizeof(counter_sources) / sizeof(counter_sources[0]); i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment