Sebastian Lackner : oledlg: Properly use SUCCEEDED macro to check HRESULT.

Alexandre Julliard julliard at winehq.org
Tue Sep 13 11:33:56 CDT 2016


Module: wine
Branch: master
Commit: 3a9907cfdc355d30f71d82d638325eb68c90a2aa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3a9907cfdc355d30f71d82d638325eb68c90a2aa

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Tue Sep 13 09:05:19 2016 +0200

oledlg: Properly use SUCCEEDED macro to check HRESULT.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/oledlg/insobjdlg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/oledlg/insobjdlg.c b/dlls/oledlg/insobjdlg.c
index 159f12b..7cbea4e 100644
--- a/dlls/oledlg/insobjdlg.c
+++ b/dlls/oledlg/insobjdlg.c
@@ -480,7 +480,7 @@ static BOOL UIINSERTOBJECTDLG_OnOpen(InsertObjectDlgInfo* pdlgInfo)
           WideCharToMultiByte(CP_ACP, 0, wcsFile, -1,
               pdlgInfo->lpOleUIInsertObject->lpszFile, pdlgInfo->lpOleUIInsertObject->cchFile, NULL, NULL);
 
-      if (ERROR_SUCCESS == (hres = GetClassFile(wcsFile, &pdlgInfo->lpOleUIInsertObject->clsid)))
+      if (SUCCEEDED(hres = GetClassFile(wcsFile, &pdlgInfo->lpOleUIInsertObject->clsid)))
       {
          if (pdlgInfo->lpOleUIInsertObject->dwFlags & IOF_CREATEFILEOBJECT)
          {




More information about the wine-cvs mailing list