From 3a9907cfdc355d30f71d82d638325eb68c90a2aa Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Tue, 13 Sep 2016 09:05:19 +0200 Subject: [PATCH] oledlg: Properly use SUCCEEDED macro to check HRESULT. Signed-off-by: Sebastian Lackner Signed-off-by: Alexandre Julliard --- 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 159f12bc592..7cbea4e59a3 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) {