Michael Stefaniuc : shell32/tests: Remove redundant NULL check before CoTaskMemFree().
Alexandre Julliard
julliard at winehq.org
Mon Dec 3 15:28:54 CST 2018
Module: wine
Branch: master
Commit: 0cc6233e2077c1ef679ecb8bd815d31484868294
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0cc6233e2077c1ef679ecb8bd815d31484868294
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Mon Dec 3 21:40:31 2018 +0100
shell32/tests: Remove redundant NULL check before CoTaskMemFree().
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shell32/tests/autocomplete.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/tests/autocomplete.c b/dlls/shell32/tests/autocomplete.c
index 33a5e64..0da164b 100644
--- a/dlls/shell32/tests/autocomplete.c
+++ b/dlls/shell32/tests/autocomplete.c
@@ -490,7 +490,7 @@ static void check_dropdown_(const char *file, UINT line, IAutoCompleteDropDown *
else
ok_(file, line)(str == NULL, "Expected (null), got %s\n", wine_dbgstr_w(str));
}
- if (str) CoTaskMemFree(str);
+ CoTaskMemFree(str);
}
}
More information about the wine-cvs
mailing list