diff --git a/windows/OLDcontainer.c b/windows/OLDcontainer.c index 3c564be2..60904a45 100644 --- a/windows/OLDcontainer.c +++ b/windows/OLDcontainer.c @@ -21,9 +21,7 @@ static void paintControlBackground(HWND hwnd, HDC dc) parent = hwnd; for (;;) { - parent = GetParent(parent); - if (parent == NULL) - logLastError("error getting parent control of control in paintControlBackground()"); + parent = GetAncestor(parent, GA_PARENT); // wine sends these messages early, yay... if (parent == initialOSContainer) return;