From: H.G.Muller Date: Mon, 8 Sep 2014 18:12:08 +0000 (+0200) Subject: Fix WB DoEvents error X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=eb564908ecd4fc38b72e6e52268c007c8129e0b2;p=xboard.git Fix WB DoEvents error --- 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; }