pdh: Check for size > 0 but no buffer.

This commit is contained in:
Jeff Latimer 2008-02-18 20:31:58 +11:00 committed by Alexandre Julliard
parent 52f03de951
commit 33c386f7fe
1 changed files with 1 additions and 1 deletions

View File

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