[PATCH 1/3] mshtml: Add a null parameter check in do_query_service().
Zebediah Figura
zfigura at codeweavers.com
Thu Sep 14 13:42:30 CDT 2017
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/mshtml/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c
index af716d1680..43270b9cc8 100644
--- a/dlls/mshtml/main.c
+++ b/dlls/mshtml/main.c
@@ -190,6 +190,9 @@ HRESULT do_query_service(IUnknown *unk, REFGUID guid_service, REFIID riid, void
IServiceProvider *sp;
HRESULT hres;
+ if (!unk)
+ return E_FAIL;
+
hres = IUnknown_QueryInterface(unk, &IID_IServiceProvider, (void**)&sp);
if(FAILED(hres))
return hres;
--
2.14.1
More information about the wine-patches
mailing list