Michael Stefaniuc : pdh: Remove redundant not-NULL check (coccinellery).
Alexandre Julliard
julliard at winehq.org
Thu Feb 28 16:09:42 CST 2019
Module: wine
Branch: master
Commit: 3215c7e3c8c39ba6a3ba3fcc54a960e5a982d9ef
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3215c7e3c8c39ba6a3ba3fcc54a960e5a982d9ef
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Thu Feb 28 00:50:35 2019 +0100
pdh: Remove redundant not-NULL check (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/pdh/pdh_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
index bc3674a..7ef91f1 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -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;
More information about the wine-cvs
mailing list