Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/webui.c
Original file line number Diff line number Diff line change
Expand Up @@ -12804,8 +12804,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hIcon = LoadIcon(GetModuleHandle(NULL) ,MAKEINTRESOURCE(101)); // default user icon resouce : 101
if(!wc.hIcon) wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); // if not existed, use system default icon
wc.hIcon = LoadIcon(wc.hInstance, MAKEINTRESOURCE(101)); // default user icon resource: 101
if (!wc.hIcon) wc.hIcon = LoadIcon(wc.hInstance, IDI_APPLICATION); // otherwise, use the executable's application icon
if (!wc.hIcon) wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); // if not present, use the system default icon

if (!RegisterClassA(&wc) && GetLastError() != ERROR_CLASS_ALREADY_EXISTS) {
_webui_wv_free(win->webView);
Expand Down
Loading