forked from 0ad/0ad
fix: remove unnecessary failure check concerning window class atom. fixes #1729
This was SVN commit r12906.
This commit is contained in:
parent
e7ef4796ee
commit
9001cba02c
@ -247,11 +247,9 @@ static HWND wnd_CreateWindow(int w, int h)
|
||||
wc.lpszClassName = L"WSDL{55752F43-0241-492C-8648-C7243397FCE4}";
|
||||
wc.hInstance = hInst;
|
||||
ATOM class_atom = RegisterClassW(&wc);
|
||||
if(!class_atom)
|
||||
{
|
||||
DEBUG_WARN_ERR(ERR::LOGIC); // RegisterClassW failed
|
||||
return 0;
|
||||
}
|
||||
// ignore failure, which is probably caused by not unregistering the class
|
||||
// (does not happen automatically when called from a DLL). just re-use
|
||||
// the existing class, which is safe because our class name is unique.
|
||||
|
||||
const DWORD windowStyle = wnd_ChooseWindowStyle(fullscreen);
|
||||
wnd_UpdateWindowDimensions(windowStyle, w, h);
|
||||
|
Loading…
Reference in New Issue
Block a user