|
|
|
@ -236,7 +236,7 @@ void WIN32Window::terminate()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(m_instance) {
|
|
|
|
|
if(!UnregisterClassA(g_app.getCompactName(), m_instance))
|
|
|
|
|
if(!UnregisterClassA(g_app.getCompactName().c_str(), m_instance))
|
|
|
|
|
g_logger.error("UnregisterClassA failed");
|
|
|
|
|
m_instance = NULL;
|
|
|
|
|
}
|
|
|
|
@ -262,7 +262,7 @@ void WIN32Window::internalCreateWindow()
|
|
|
|
|
wc.hCursor = m_defaultCursor;
|
|
|
|
|
wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
|
|
|
|
|
wc.lpszMenuName = NULL;
|
|
|
|
|
wc.lpszClassName = g_app.getCompactName();
|
|
|
|
|
wc.lpszClassName = g_app.getCompactName().c_str();
|
|
|
|
|
|
|
|
|
|
if(!RegisterClassA(&wc))
|
|
|
|
|
g_logger.fatal("Failed to register the window class.");
|
|
|
|
|