diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-24 15:00:01 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-24 15:00:01 +0000 |
commit | a289103f2834d2219799f8d84e29a6d69c00574a (patch) | |
tree | 8f27ff7316e0e089938524c634d3f71320da26ab /plugins/IEView | |
parent | f732275579a4f029b3d01379112ea9f4d3e1fe1e (diff) |
IEView: fix(?) always true on Win7-
git-svn-id: http://svn.miranda-ng.org/main/trunk@16167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView')
-rw-r--r-- | plugins/IEView/src/IEView.cpp | 2 | ||||
-rw-r--r-- | plugins/IEView/src/external_funcs.cpp | 7 |
2 files changed, 5 insertions, 4 deletions
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;
}
}
|