diff --git a/Source/Client/Browser/BrowserHostWindow.cpp b/Source/Client/Browser/BrowserHostWindow.cpp index 8a9751bd6..be7faa5f0 100644 --- a/Source/Client/Browser/BrowserHostWindow.cpp +++ b/Source/Client/Browser/BrowserHostWindow.cpp @@ -4,12 +4,9 @@ // OFFSET: 0x00AB29D0 // FUNCTION: fn_45435 bool CWebBrowser::CreateHostWindow(HWND parent, HINSTANCE instance, int width, int height) { - WNDCLASSEXA windowClass{}; - windowClass.cbSize = sizeof(windowClass); - windowClass.lpfnWndProc = BrowserHostProc; - windowClass.hInstance = instance; - windowClass.hIcon = LoadIconA(instance, MAKEINTRESOURCEA(123)); - windowClass.lpszClassName = "ROWebBrowser"; + WNDCLASSEXA windowClass = { + sizeof(WNDCLASSEXA), 0, BrowserHostProc, 0, 0, instance, LoadIconA(instance, MAKEINTRESOURCEA(123)), nullptr, nullptr, nullptr, "ROWebBrowser", nullptr + }; RegisterClassExA(&windowClass); this->host = CreateWindowExA(0, "ROWebBrowser", g_windowName, WS_POPUP | WS_OVERLAPPEDWINDOW, 0, 0, width, height, parent, nullptr, instance, nullptr); if (!this->host) {