[PATCH] wmp: The return value should be checked.

Shao Ming shaoming at uniontech.com
Wed Oct 13 22:13:06 CDT 2021


Signed-off-by: Shao Ming <shaoming at uniontech.com>
---
 dlls/wmp/oleobj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wmp/oleobj.c b/dlls/wmp/oleobj.c
index 04a9f204639..eb6466d1592 100644
--- a/dlls/wmp/oleobj.c
+++ b/dlls/wmp/oleobj.c
@@ -158,7 +158,7 @@ static HRESULT activate_inplace(WindowsMediaPlayer *This)
         IOleInPlaceSiteEx_OnInPlaceActivateEx(ipsiteex, &redraw, 0);
         ipsite = (IOleInPlaceSite*)ipsiteex;
     }else {
-        IOleClientSite_QueryInterface(This->client_site, &IID_IOleInPlaceSite, (void**)&ipsite);
+        hres = IOleClientSite_QueryInterface(This->client_site, &IID_IOleInPlaceSite, (void**)&ipsite);
         if(FAILED(hres)) {
             FIXME("No IOleInPlaceSite instance\n");
             return hres;
-- 
2.20.1






More information about the wine-devel mailing list