Switched from GetParent() to GetAncestor() on Windows since GetAncestor() has no documented error state.
This commit is contained in:
parent
6400a6ea8c
commit
dad19a6318
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue