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;
|
parent = hwnd;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
parent = GetParent(parent);
|
parent = GetAncestor(parent, GA_PARENT);
|
||||||
if (parent == NULL)
|
|
||||||
logLastError("error getting parent control of control in paintControlBackground()");
|
|
||||||
// wine sends these messages early, yay...
|
// wine sends these messages early, yay...
|
||||||
if (parent == initialOSContainer)
|
if (parent == initialOSContainer)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue