summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-27 14:47:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-27 14:47:20 +0300
commit38b76a7b31a991a4b7ec758f4cb7a872e3b5a994 (patch)
tree2dc7b98ccd4719dd032edc87c3dcc9aa9a821bd2 /src/mir_core
parent1456e68e9391dad5c101e940425770cda54ff5a3 (diff)
minor code cleaning
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/windowlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/windowlist.cpp b/src/mir_core/src/windowlist.cpp
index 8b5e9a87d9..350629bce2 100644
--- a/src/mir_core/src/windowlist.cpp
+++ b/src/mir_core/src/windowlist.cpp
@@ -87,7 +87,7 @@ MIR_CORE_DLL(HWND) WindowList_Find(MWindowList hList, UINT_PTR param)
MIR_CORE_DLL(int) WindowList_Broadcast(MWindowList hList, UINT message, WPARAM wParam, LPARAM lParam)
{
if (hList == nullptr)
- return NULL;
+ return 0;
for (auto &it : hList->rev_iter())
SendMessage(it->hWnd, message, wParam, lParam);
@@ -97,7 +97,7 @@ MIR_CORE_DLL(int) WindowList_Broadcast(MWindowList hList, UINT message, WPARAM w
MIR_CORE_DLL(int) WindowList_BroadcastAsync(MWindowList hList, UINT message, WPARAM wParam, LPARAM lParam)
{
if (hList == nullptr)
- return NULL;
+ return 0;
for (auto &it : hList->rev_iter())
PostMessage(it->hWnd, message, wParam, lParam);