summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/clist/clc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/clist/clc.cpp b/src/modules/clist/clc.cpp
index baa67a4cd1..9f41284f6b 100644
--- a/src/modules/clist/clc.cpp
+++ b/src/modules/clist/clc.cpp
@@ -45,8 +45,10 @@ void FreeDisplayNameCache(void);
void fnInitAutoRebuild(HWND hWnd)
{
- if (!cli.bAutoRebuild && hWnd)
- cli.bAutoRebuild = PostMessage(hWnd, CLM_AUTOREBUILD, 0, 0) != 0;
+ if (!cli.bAutoRebuild && hWnd) {
+ cli.bAutoRebuild = true;
+ SendMessage(hWnd, CLM_AUTOREBUILD, 0, 0);
+ }
}
void fnClcBroadcast(int msg, WPARAM wParam, LPARAM lParam)