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;
|
return 0;
|
||||||
case EW_SETSTATICBKCOLOR:
|
case EW_SETSTATICBKCOLOR:
|
||||||
SetWindowLong(
|
DeleteObject(
|
||||||
(HWND)process_string_fromparm_toint(0),
|
(HGDIOBJ)SetWindowLong(
|
||||||
GWL_USERDATA,
|
(HWND)process_string_fromparm_toint(0),
|
||||||
(LONG)CreateSolidBrush(parm1)
|
GWL_USERDATA,
|
||||||
|
(LONG)CreateSolidBrush(parm1)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
return 0;
|
return 0;
|
||||||
case EW_SETBRANDINGIMAGE:
|
case EW_SETBRANDINGIMAGE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue