| Index: src/plugin/NotificationMessage.cpp |
| =================================================================== |
| --- a/src/plugin/NotificationMessage.cpp |
| +++ b/src/plugin/NotificationMessage.cpp |
| @@ -16,7 +16,7 @@ |
| if (!commonControlsInitialized) |
| { |
| INITCOMMONCONTROLSEX commControls; |
| - commControls.dwSize = sizeof(commControls); |
| + commControls.dwSize = sizeof(INITCOMMONCONTROLSEX); |
| commControls.dwICC = ICC_BAR_CLASSES; |
| InitCommonControlsEx(&commControls); |
| commonControlsInitialized = true; |
| @@ -39,7 +39,7 @@ |
| SetWindowPos(toolTipWindow, HWND_TOPMOST,0, 0, 0, 0, |
| SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); |
| TOOLINFOW ti = {}; |
| - ti.cbSize = sizeof(ti); |
| + ti.cbSize = sizeof(TOOLINFOW); |
| ti.uFlags = TTF_IDISHWND | TTF_TRACK | TTF_TRANSPARENT; |
| ti.hwnd = parentWindow; |
| ti.hinst = NULL; |
| @@ -77,7 +77,7 @@ |
| bool NotificationMessage::SetTextAndIcon(std::wstring text, std::wstring title, int icon) |
| { |
| TOOLINFOW ti = {}; |
| - ti.cbSize = sizeof(ti); |
| + ti.cbSize = sizeof(TOOLINFOW); |
| ti.hwnd = parentWindow; |
| ti.hinst = NULL; |
| ti.uId = (UINT_PTR)parentWindow; |