[PATCH] shell32/tests: Remove redundant NULL check before CoTaskMemFree()

Michael Stefaniuc mstefani at winehq.org
Mon Dec 3 14:40:31 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani 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 33a5e6427a..0da164b464 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);
     }
 }
 
-- 
2.14.5




More information about the wine-devel mailing list