Module: wine Branch: master Commit: 2ac66e33fd89bbae31367ebda94415424d812a56 URL: https://gitlab.winehq.org/wine/wine/-/commit/2ac66e33fd89bbae31367ebda944154...
Author: Zebediah Figura zfigura@codeweavers.com Date: Wed Sep 6 17:45:49 2023 -0500
objsel: Do not check for a NULL interface in COM methods.
---
dlls/objsel/objsel.c | 10 ---------- 1 file changed, 10 deletions(-)
diff --git a/dlls/objsel/objsel.c b/dlls/objsel/objsel.c index 0c809673c44..41f548bbc75 100644 --- a/dlls/objsel/objsel.c +++ b/dlls/objsel/objsel.c @@ -59,8 +59,6 @@ static ULONG WINAPI OBJSEL_IDsObjectPicker_AddRef(IDsObjectPicker * iface)
TRACE("\n");
- if (This == NULL) return E_POINTER; - return InterlockedIncrement(&This->ref); }
@@ -75,8 +73,6 @@ static ULONG WINAPI OBJSEL_IDsObjectPicker_Release(IDsObjectPicker * iface)
TRACE("\n");
- if (This == NULL) return E_POINTER; - ref = InterlockedDecrement(&This->ref);
if (ref == 0) @@ -209,9 +205,6 @@ static ULONG WINAPI class_factory_AddRef(IClassFactory *iface)
TRACE("\n");
- if (!factory) - return E_POINTER; - return InterlockedIncrement(&factory->ref); }
@@ -222,9 +215,6 @@ static ULONG WINAPI class_factory_Release(IClassFactory *iface)
TRACE("\n");
- if (!factory) - return E_POINTER; - return InterlockedDecrement(&factory->ref); }