pdh: Fixed wrong condition.

This commit is contained in:
Marcus Meissner 2008-01-26 09:43:10 +01:00 committed by Alexandre Julliard
parent c46327b40c
commit 22aed3267b

View file

@ -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++)