[PATCH] shell32: Remove redundant not-NULL check (coccinellery)
Michael Stefaniuc
mstefani at winehq.org
Fri Mar 8 14:16:52 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
return E_OUTOFMEMORY if list is NULL.
dlls/shell32/recyclebin.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/shell32/recyclebin.c b/dlls/shell32/recyclebin.c
index 0d80e6376d..49e7f5da32 100644
--- a/dlls/shell32/recyclebin.c
+++ b/dlls/shell32/recyclebin.c
@@ -431,8 +431,7 @@ static HRESULT WINAPI RecycleBin_EnumObjects(IShellFolder2 *iface, HWND hwnd, SH
return S_OK;
failed:
- if (list)
- IEnumIDList_Release(&list->IEnumIDList_iface);
+ IEnumIDList_Release(&list->IEnumIDList_iface);
for (; i<pidls_count; i++)
ILFree(pidls[i]);
SHFree(pidls);
--
2.20.1
More information about the wine-devel
mailing list