X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/750037d76de7c1ab5d46aaf8a712f32599e7d563..1fd0d7c599cdd8898bf953f99298f810e9e3fad9:/windows.c diff --git a/windows.c b/windows.c index f7621df..d282d72 100644 --- a/windows.c +++ b/windows.c @@ -1065,7 +1065,7 @@ static void init_help(void) /* * Start Help. */ -static void start_help(frontend *fe, char *topic) +static void start_help(frontend *fe, const char *topic) { char *str = NULL; int cmd; @@ -2441,7 +2441,9 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = inst; - wndclass.hIcon = LoadIcon(inst, IDI_APPLICATION); + wndclass.hIcon = LoadIcon(inst, MAKEINTRESOURCE(200)); + if (!wndclass.hIcon) /* in case resource file is absent */ + wndclass.hIcon = LoadIcon(inst, IDI_APPLICATION); wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); wndclass.hbrBackground = NULL; wndclass.lpszMenuName = NULL;