summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-04 19:37:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-04 19:37:31 +0000
commit2da1f347012d15530482b2494e83ab0b8c785521 (patch)
tree58d36b9515d4d755a247961608af944566fd6dcd /src
parent21bfe50e8060a5cbede8eb8a79293618c276c05b (diff)
various code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@9678 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-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)