applied patch #1951248 - BgImage::Destroy re-enter crash fix
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5615 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ed4545aacf
commit
1a999b33e1
1 changed files with 4 additions and 2 deletions
|
@ -330,10 +330,12 @@ NSISFunc(Clear) {
|
|||
|
||||
NSISFunc(Destroy) {
|
||||
bgBitmap.bReady = FALSE;
|
||||
if (IsWindow(hwndParent))
|
||||
if (IsWindow(hwndParent) && oldProc)
|
||||
SetWindowLong(hwndParent, GWL_WNDPROC, (long)oldProc);
|
||||
SendMessage(hWndImage, WM_CLOSE, 0, 0);
|
||||
if (IsWindow(hWndImage))
|
||||
SendMessage(hWndImage, WM_CLOSE, 0, 0);
|
||||
hWndImage = 0;
|
||||
oldProc = NULL;
|
||||
Clear(0, 0, 0, 0);
|
||||
UnregisterClass("NSISBGImage", g_hInstance);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue