diff options
Diffstat (limited to 'redo/common_windows.c')
| -rw-r--r-- | redo/common_windows.c | 5 |
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 |
