Commit 2ac66e33 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

objsel: Do not check for a NULL interface in COM methods.

parent 026c7fc6
...@@ -59,8 +59,6 @@ static ULONG WINAPI OBJSEL_IDsObjectPicker_AddRef(IDsObjectPicker * iface) ...@@ -59,8 +59,6 @@ static ULONG WINAPI OBJSEL_IDsObjectPicker_AddRef(IDsObjectPicker * iface)
TRACE("\n"); TRACE("\n");
if (This == NULL) return E_POINTER;
return InterlockedIncrement(&This->ref); return InterlockedIncrement(&This->ref);
} }
...@@ -75,8 +73,6 @@ static ULONG WINAPI OBJSEL_IDsObjectPicker_Release(IDsObjectPicker * iface) ...@@ -75,8 +73,6 @@ static ULONG WINAPI OBJSEL_IDsObjectPicker_Release(IDsObjectPicker * iface)
TRACE("\n"); TRACE("\n");
if (This == NULL) return E_POINTER;
ref = InterlockedDecrement(&This->ref); ref = InterlockedDecrement(&This->ref);
if (ref == 0) if (ref == 0)
...@@ -209,9 +205,6 @@ static ULONG WINAPI class_factory_AddRef(IClassFactory *iface) ...@@ -209,9 +205,6 @@ static ULONG WINAPI class_factory_AddRef(IClassFactory *iface)
TRACE("\n"); TRACE("\n");
if (!factory)
return E_POINTER;
return InterlockedIncrement(&factory->ref); return InterlockedIncrement(&factory->ref);
} }
...@@ -222,9 +215,6 @@ static ULONG WINAPI class_factory_Release(IClassFactory *iface) ...@@ -222,9 +215,6 @@ static ULONG WINAPI class_factory_Release(IClassFactory *iface)
TRACE("\n"); TRACE("\n");
if (!factory)
return E_POINTER;
return InterlockedDecrement(&factory->ref); return InterlockedDecrement(&factory->ref);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment