Skip to content
Snippets Groups Projects
Commit 30cc8cb4 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Also fail if GetModuleHandleW(NULL) fails.

parent 1366dfff
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4194 canceled
......@@ -711,6 +711,8 @@ gdi_thread(void *arg)
wc.hInstance = WinMainHInst;
if (wc.hInstance == NULL)
wc.hInstance = GetModuleHandleW(NULL);
if (wc.hInstance == NULL)
goto fail;
wc.hIcon = LoadIcon(NULL, MAKEINTRESOURCE(1));
wc.hCursor = LoadCursor(NULL, IDC_IBEAM);
wc.hbrBackground = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment