From eb564908ecd4fc38b72e6e52268c007c8129e0b2 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 8 Sep 2014 20:12:08 +0200 Subject: [PATCH] Fix WB DoEvents error --- winboard/winboard.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) 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; } -- 1.7.0.4