mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:28:19 +00:00
oledlg: Properly use SUCCEEDED macro to check HRESULT.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5b4541231d
commit
3a9907cfdc
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue