summaryrefslogtreecommitdiff
path: root/plugins/TranslitSwitcher/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-18 19:39:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-18 19:39:31 +0300
commit760347687945fcd50e46ebcefc666359258f8579 (patch)
tree449292b8d656bf0c51efbcebf19a74fde9d2b1ec /plugins/TranslitSwitcher/src
parent48e0d2824f79489e28b027d3e7affcc218817bba (diff)
m_ieview.h: code cleaning
Diffstat (limited to 'plugins/TranslitSwitcher/src')
-rw-r--r--plugins/TranslitSwitcher/src/Layoutproc.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp
index 58b1600b3a..33fe4c32a2 100644
--- a/plugins/TranslitSwitcher/src/Layoutproc.cpp
+++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp
@@ -381,12 +381,8 @@ void SwitchLayout(bool lastword)
if ((mir_wstrcmp(szClassName, L"THppRichEdit.UnicodeClass") == 0 || mir_wstrcmp(szClassName, L"THistoryGrid.UnicodeClass") == 0 || mir_wstrcmp(szClassName, L"TExtHistoryGrid.UnicodeClass") == 0 || mir_wstrcmp(szClassName, L"Internet Explorer_Server") == 0)) {
wchar_t buf[2048];
if (mir_wstrcmp(szClassName, L"Internet Explorer_Server") == 0) {
- IEVIEWEVENT event;
HWND hwnd3 = GetParent(GetParent(hwnd2));
- memset(&event, 0, sizeof(event));
- event.cbSize = sizeof(IEVIEWEVENT);
- event.hContact = 0;
- event.dwFlags = 0;
+ IEVIEWEVENT event = {};
event.iType = IEE_GET_SELECTION;
event.hwnd = hwnd3;
wchar_t *selected = (wchar_t *)CallService(MS_IEVIEW_EVENT, 0, (LPARAM)&event);