[PATCH] oledb32: Remove redundant not-NULL check (coccinellery)
Michael Stefaniuc
mstefani at winehq.org
Thu Feb 21 13:35:39 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
return E_POINTER if cookie is NULL
dlls/oledb32/rowpos.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/oledb32/rowpos.c b/dlls/oledb32/rowpos.c
index 46904d3da5..c922f93f90 100644
--- a/dlls/oledb32/rowpos.c
+++ b/dlls/oledb32/rowpos.c
@@ -416,7 +416,7 @@ static HRESULT WINAPI rowpos_cp_Advise(IConnectionPoint *iface, IUnknown *unksin
}
This->sinks[i] = sink;
- if (cookie) *cookie = i + 1;
+ *cookie = i + 1;
return S_OK;
}
--
2.20.1
More information about the wine-devel
mailing list