mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: Fix of WndDestroy
git-svn-id: svn://ultimatepp.org/upp/trunk@11859 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b4c5845e0c
commit
6119e7719f
1 changed files with 2 additions and 2 deletions
|
|
@ -568,7 +568,7 @@ void Ctrl::WndDestroy()
|
|||
GuiLock __;
|
||||
if(top && top->hwnd) {
|
||||
HWND hwnd = top->hwnd;
|
||||
WndFree(); // CXL 2007-06-04 to avoid loosing focus with maximize box owned dialogs
|
||||
WndFree();
|
||||
::DestroyWindow(hwnd);
|
||||
}
|
||||
}
|
||||
|
|
@ -675,7 +675,7 @@ LRESULT CALLBACK Ctrl::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
|
|||
}
|
||||
#endif
|
||||
LRESULT l = 0;
|
||||
if(w) {
|
||||
if(w && w->GetHWND()) {
|
||||
#if defined(_DEBUG) && LOGTIMING
|
||||
int ticks = msecs();
|
||||
String wname = w->Name();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue