fixed bug #2053522 - nsDialogs doesn't RemoveProp

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5700 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-08-15 17:59:29 +00:00
parent 82ef123f1d
commit cdbef6a754

View file

@ -220,6 +220,17 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CTLCOLORLISTBOX:
// let the NSIS window handle colors, it knows best
return SendMessage(g_dialog.hwParent, uMsg, wParam, lParam);
// bye bye
case WM_DESTROY:
{
unsigned i;
for (i = 0; i < g_dialog.controlCount; i++)
{
RemoveProp(g_dialog.controls[i].window, NSCONTROL_ID_PROP);
}
break;
}
}
return FALSE;