diff options
Diffstat (limited to 'src/modules/button/button.cpp')
-rw-r--r-- | src/modules/button/button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|