Switched from GetParent() to GetAncestor() on Windows since GetAncestor() has no documented error state.

This commit is contained in:
Pietro Gagliardi 2015-04-30 17:39:20 -04:00
parent 6400a6ea8c
commit dad19a6318
1 changed files with 1 additions and 3 deletions

View File

@ -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;