Delete the old brush if setting the brush twice

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2059 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-01-11 21:29:55 +00:00
parent 6612c88775
commit 1e6abd3457

View file

@ -763,10 +763,12 @@ static int NSISCALL ExecuteEntry(entry *entry_)
);
return 0;
case EW_SETSTATICBKCOLOR:
SetWindowLong(
(HWND)process_string_fromparm_toint(0),
GWL_USERDATA,
(LONG)CreateSolidBrush(parm1)
DeleteObject(
(HGDIOBJ)SetWindowLong(
(HWND)process_string_fromparm_toint(0),
GWL_USERDATA,
(LONG)CreateSolidBrush(parm1)
)
);
return 0;
case EW_SETBRANDINGIMAGE: