From b28058f5859211b00ba9ca287b751ed21ccebac5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Jun 2012 18:23:09 +0000 Subject: - fix for the double subclassing - valid initialization of clist buttons git-svn-id: http://svn.miranda-ng.org/main/trunk@516 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/button/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/button/button.cpp') diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp index c55c4f807f..6793391fe6 100644 --- a/src/modules/button/button.cpp +++ b/src/modules/button/button.cpp @@ -507,7 +507,7 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, L case BUTTONSETCUSTOM: { MButtonCustomize *pCustom = (MButtonCustomize*)lParam; - if (pCustom == NULL) + if (pCustom == NULL || bct->fnWindowProc) break; bct = (MButtonCtrl*)mir_realloc(bct, pCustom->cbLen); -- cgit v1.2.3