And update makedist.sh to put all the new stuff into the source
[sgt/puzzles] / windows.c
index f7621df..d282d72 100644 (file)
--- 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;