mirror of
https://github.com/holub/mame
synced 2025-06-28 23:24:23 +03:00
Fixed register_window_class
First, try to unregister previously registered class.
This commit is contained in:
parent
8b2b67d9e4
commit
40b357731b
@ -801,6 +801,8 @@ void debugview_info::register_window_class()
|
|||||||
wc.cbClsExtra = 0;
|
wc.cbClsExtra = 0;
|
||||||
wc.cbWndExtra = 0;
|
wc.cbWndExtra = 0;
|
||||||
|
|
||||||
|
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))
|
||||||
fatalerror("Unable to register debug view class\n");
|
fatalerror("Unable to register debug view class\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user