summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/Coolsb
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-03-06 23:28:19 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-03-06 23:28:19 +0000
commit1dd73910cbbf9062b62b4713ff88427011fcac85 (patch)
treee747e8055920ceb6feef9798fa3c71120f0c1350 /plugins/Clist_nicer/src/Coolsb
parent052236c2ce0e28176d18cfdf08ac258cbf7600a1 (diff)
Clist_nicer:
- Minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12364 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/Coolsb')
-rw-r--r--plugins/Clist_nicer/src/Coolsb/coolsblib.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Clist_nicer/src/Coolsb/coolsblib.cpp b/plugins/Clist_nicer/src/Coolsb/coolsblib.cpp
index 538f77f2a7..542493674a 100644
--- a/plugins/Clist_nicer/src/Coolsb/coolsblib.cpp
+++ b/plugins/Clist_nicer/src/Coolsb/coolsblib.cpp
@@ -388,6 +388,8 @@ int WINAPI CoolSB_SetScrollInfo(HWND hwnd, int fnBar, LPSCROLLINFO lpsi, BOOL fR
}
SCROLLBAR *sbar = GetScrollBarFromHwnd(hwnd, fnBar);
+ if (sbar == NULL)
+ return;
if ((lpsi->fMask & SIF_DISABLENOSCROLL) || (sbar->fScrollFlags & CSBS_THUMBALWAYS)) {
if (!sbar->fScrollVisible) {