pdh: Check for size > 0 but no buffer.
This commit is contained in:
parent
52f03de951
commit
33c386f7fe
|
@ -843,7 +843,7 @@ PDH_STATUS WINAPI PdhLookupPerfNameByIndexA( LPCSTR machine, DWORD index, LPSTR
|
|||
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 (!(ret = PdhLookupPerfNameByIndexW( NULL, index, bufferW, &sizeW )))
|
||||
|
|
Loading…
Reference in New Issue