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