mirror of
https://github.com/holub/mame
synced 2025-06-24 05:17:04 +03:00
WM_SIZE etc may be posted before CreateWindowEx returns
This commit is contained in:
parent
a7545070f9
commit
3c4fc89e66
@ -774,10 +774,10 @@ LRESULT CALLBACK debugview_info::static_view_proc(HWND wnd, UINT message, WPARAM
|
||||
}
|
||||
|
||||
debugview_info *const info = (debugview_info *)(FPTR)GetWindowLongPtr(wnd, GWLP_USERDATA);
|
||||
if (!info)
|
||||
if (info == NULL)
|
||||
return DefWindowProc(wnd, message, wparam, lparam);
|
||||
|
||||
assert(info->m_wnd == wnd);
|
||||
assert((info->m_wnd == wnd) || (info->m_wnd == NULL));
|
||||
return info->view_proc(message, wparam, lparam);
|
||||
}
|
||||
|
||||
|
@ -564,10 +564,10 @@ LRESULT CALLBACK debugwin_info::static_window_proc(HWND wnd, UINT message, WPARA
|
||||
}
|
||||
|
||||
debugwin_info *const info = (debugwin_info *)(FPTR)GetWindowLongPtr(wnd, GWLP_USERDATA);
|
||||
if (!info)
|
||||
if (info == NULL)
|
||||
return DefWindowProc(wnd, message, wparam, lparam);
|
||||
|
||||
assert(info->m_wnd == wnd);
|
||||
assert((info->m_wnd == wnd) || (info->m_wnd == NULL));
|
||||
return info->window_proc(message, wparam, lparam);
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ class debugwin_info : protected debugbase_info
|
||||
public:
|
||||
template<class U> friend class simple_list;
|
||||
|
||||
debugwin_info(debugger_windows_interface &debugger, bool main_console, LPCSTR title, WNDPROC handler);
|
||||
debugwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler);
|
||||
virtual ~debugwin_info();
|
||||
|
||||
bool is_valid() const { return m_wnd != NULL; }
|
||||
@ -101,6 +101,7 @@ protected:
|
||||
ID_DEVICE_OPTIONS // always keep this at the end
|
||||
};
|
||||
|
||||
bool is_main_console() const { return m_is_main_console; }
|
||||
HWND window() const { return m_wnd; }
|
||||
UINT32 minwidth() const { return m_minwidth; }
|
||||
UINT32 maxwidth() const { return m_maxwidth; }
|
||||
|
Loading…
Reference in New Issue
Block a user