mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Fixed register_window_classcreate_window_class
First, try to unregister previously registered class.
This commit is contained in:
parent
d1c123beeb
commit
ee826f16cb
@ -171,6 +171,8 @@ static int create_window_class(void)
|
||||
wc.lpszClassName = OUTPUT_WINDOW_CLASS;
|
||||
wc.hInstance = GetModuleHandleUni();
|
||||
wc.lpfnWndProc = output_window_proc;
|
||||
|
||||
UnregisterClass(wc.lpszClassName, wc.hInstance);
|
||||
|
||||
// register the class; fail if we can't
|
||||
if (!RegisterClass(&wc))
|
||||
|
Loading…
Reference in New Issue
Block a user