summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-04 14:15:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-04 14:15:55 +0300
commit8937c49faab219b51b9863847406a21945d3a9cb (patch)
tree95390d236af9d832f3c7c50a2fc2de357a353996 /src/mir_app
parenta5d8287df3cb04ddea3888cce55ce08f4d5fe73b (diff)
Windows lists:
- fix for a 64-bit issue that could cause a crash; - code cleaning
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/clc.cpp2
-rw-r--r--src/mir_app/src/proto_utils.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp
index d35e8478d2..d3c92eee22 100644
--- a/src/mir_app/src/clc.cpp
+++ b/src/mir_app/src/clc.cpp
@@ -254,7 +254,7 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT uMsg, WPARAM wParam
switch (uMsg) {
case WM_CREATE:
- WindowList_Add(hClcWindowList, hwnd, 0);
+ WindowList_Add(hClcWindowList, hwnd);
cli.pfnRegisterFileDropping(hwnd);
if (dat == nullptr) {
dat = new ClcData();
diff --git a/src/mir_app/src/proto_utils.cpp b/src/mir_app/src/proto_utils.cpp
index 787187f616..6fef3ccdab 100644
--- a/src/mir_app/src/proto_utils.cpp
+++ b/src/mir_app/src/proto_utils.cpp
@@ -229,7 +229,7 @@ void PROTO_INTERFACE::WindowSubscribe(HWND hwnd)
if (m_hWindowList == nullptr)
m_hWindowList = WindowList_Create();
- WindowList_Add(m_hWindowList, hwnd, 0);
+ WindowList_Add(m_hWindowList, hwnd);
}
void PROTO_INTERFACE::WindowUnsubscribe(HWND hwnd)