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:
parent
6612c88775
commit
1e6abd3457
1 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue