From 3d4e54822dc6117306d5a4ac0e79017c4810b657 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 30 Aug 2014 22:39:59 -0400 Subject: Fixed wine build. wine is sure missing a few things (and gets a few things wrong...) --- redo/common_windows.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'redo/common_windows.c') diff --git a/redo/common_windows.c b/redo/common_windows.c index 13997c7..327e707 100644 --- a/redo/common_windows.c +++ b/redo/common_windows.c @@ -110,9 +110,14 @@ void paintControlBackground(HWND hwnd, HDC dc) parent = GetParent(parent); if (parent == NULL) xpanic("error getting parent container of control in paintControlBackground()", GetLastError()); + // wine sends these messages early, yay... + if (parent == msgwin) + return; parent = GetParent(parent); if (parent == NULL) xpanic("error getting parent control of control in paintControlBackground()", GetLastError()); + if (parent == msgwin) + return; if (GetClassNameW(parent, classname, 128) == 0) xpanic("error getting name of focused window class in paintControlBackground()", GetLastError()); } while (_wcsicmp(classname, L"button") == 0); // skip groupboxes -- cgit v1.2.3