summaryrefslogtreecommitdiff
path: root/redo/common_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-30 22:39:59 -0400
committerPietro Gagliardi <[email protected]>2014-08-30 22:39:59 -0400
commit3d4e54822dc6117306d5a4ac0e79017c4810b657 (patch)
treeedff4d7cfe840635e89e3771ac99d49828e892ec /redo/common_windows.c
parenta81fa141ed7bbaf7be2c7aad50d425a34b1c9dff (diff)
Fixed wine build. wine is sure missing a few things (and gets a few things wrong...)
Diffstat (limited to 'redo/common_windows.c')
-rw-r--r--redo/common_windows.c5
1 files changed, 5 insertions, 0 deletions
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