Fixed register_window_class

First, try to unregister previously registered class.
This commit is contained in:
Vladimir Kryvian 2015-08-27 14:07:13 +03:00
parent 40b357731b
commit d1c123beeb

View File

@ -592,6 +592,8 @@ void debugwin_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 window class\n"); fatalerror("Unable to register debug window class\n");