From a289103f2834d2219799f8d84e29a6d69c00574a Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 24 Jan 2016 15:00:01 +0000 Subject: IEView: fix(?) always true on Win7- git-svn-id: http://svn.miranda-ng.org/main/trunk@16167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/IEView.cpp | 2 +- plugins/IEView/src/external_funcs.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp index 3a0ed4bafd..82bd22e9b8 100644 --- a/plugins/IEView/src/IEView.cpp +++ b/plugins/IEView/src/IEView.cpp @@ -1097,7 +1097,7 @@ bool IEView::mouseClick(POINT pt) if ((GetKeyState(VK_SHIFT) & 0x8000) && !(GetKeyState(VK_CONTROL) & 0x8000) && !(GetKeyState(VK_MENU) & 0x8000)) SendMessage(GetParent(hwnd), WM_COMMAND, IDCANCEL, 0); - Utils_OpenUrlT(url); + Utils_OpenUrlW(url); return true; } } diff --git a/plugins/IEView/src/external_funcs.cpp b/plugins/IEView/src/external_funcs.cpp index d01e114458..95eac7631b 100644 --- a/plugins/IEView/src/external_funcs.cpp +++ b/plugins/IEView/src/external_funcs.cpp @@ -2,7 +2,6 @@ namespace External { - HRESULT mir_CallService(DISPPARAMS *pDispParams, VARIANT *pVarResult) { if (pDispParams == nullptr || pDispParams->cArgs < 3) @@ -75,8 +74,10 @@ namespace External switch (dbv.type) { case DBVT_BYTE: + //pVarResult->bVal = dbv.bVal != 0; + //pVarResult->vt = VT_BOOL; + pVarResult->vt = VT_UI1; pVarResult->bVal = dbv.bVal; - pVarResult->vt = VT_BOOL; break; case DBVT_WCHAR: pVarResult->vt = VT_BSTR; @@ -96,7 +97,7 @@ namespace External break; case DBVT_WORD: pVarResult->vt = VT_I2; - pVarResult->iVal = dbv.dVal; + pVarResult->iVal = dbv.wVal; break; } } -- cgit v1.2.3