X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=4e43c6244a4e7c0a468cb41cc8386f697e6b31af;hb=89f4b438a9bc3ed2b2b2bd79f22a1a6af06e9bcb;hp=3515cb3376143090cf4d840c54839a14ca954584;hpb=63dc09b62c3a6430c671b8fd5ebd4be691167173;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index 3515cb3..4e43c62 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -825,7 +825,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 0, /* lowest message to examine */ 0)) /* highest message to examine */ { - HandleMessage(msg); + HandleMessage(&msg); } @@ -938,7 +938,7 @@ DoEvents () 0, /* highest message to examine */ PM_REMOVE)) { - HandleMessage(msg); + HandleMessage(&msg); } } @@ -4512,6 +4512,7 @@ Promotion(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) char promoChar; switch (message) { + case WM_INITDIALOG: /* message: initialize dialog box */ /* Center the dialog over the application window */ CenterWindow(hDlg, GetWindow(hDlg, GW_OWNER)); @@ -5737,6 +5738,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) default: /* Passes it on if unprocessed */ return (DefWindowProc(hwnd, message, wParam, lParam)); } + return 0; }