pdh: Remove redundant not-NULL check (coccinellery).

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-02-28 00:50:35 +01:00 committed by Alexandre Julliard
parent cc12c0af71
commit 3215c7e3c8
1 changed files with 2 additions and 2 deletions

View File

@ -898,9 +898,9 @@ PDH_STATUS WINAPI PdhLookupPerfNameByIndexA( LPCSTR machine, DWORD index, LPSTR
{
int required = WideCharToMultiByte( CP_ACP, 0, bufferW, -1, NULL, 0, NULL, NULL );
if (size && *size < required) ret = PDH_MORE_DATA;
if (*size < required) ret = PDH_MORE_DATA;
else WideCharToMultiByte( CP_ACP, 0, bufferW, -1, buffer, required, NULL, NULL );
if (size) *size = required;
*size = required;
}
heap_free( machineW );
return ret;