win32/wgl: Initialize hwnd to NULL

Otherwise there's a valid code path that may return it uninitialized.
This commit is contained in:
Georges Basile Stavracas Neto 2024-05-03 09:51:46 -03:00
parent ebaef9f18b
commit 45e64b915c

View File

@ -267,7 +267,7 @@ create_dummy_gl_window (void)
{
WNDCLASS wclass = { 0, };
ATOM klass;
HWND hwnd;
HWND hwnd = NULL;
wclass.lpszClassName = "GdkGLDummyWindow";
wclass.lpfnWndProc = DefWindowProc;