win32/wgl: Initialize hwnd to NULL
Otherwise there's a valid code path that may return it uninitialized.
This commit is contained in:
committed by
Mat
parent
e9a35fe3f5
commit
f1d4cf9760
@@ -267,7 +267,7 @@ create_dummy_gl_window (void)
|
|||||||
{
|
{
|
||||||
WNDCLASS wclass = { 0, };
|
WNDCLASS wclass = { 0, };
|
||||||
ATOM klass;
|
ATOM klass;
|
||||||
HWND hwnd;
|
HWND hwnd = NULL;
|
||||||
|
|
||||||
wclass.lpszClassName = "GdkGLDummyWindow";
|
wclass.lpszClassName = "GdkGLDummyWindow";
|
||||||
wclass.lpfnWndProc = DefWindowProc;
|
wclass.lpfnWndProc = DefWindowProc;
|
||||||
|
|||||||
Reference in New Issue
Block a user