https://bugs.winehq.org/show_bug.cgi?id=49174
--- Comment #2 from Michael McGuire spoon0042@hotmail.com --- Or even:
void get_top_window(HTMLOuterWindow *window, HTMLOuterWindow **ret) { HTMLOuterWindow *iter = window;
if (iter) while (iter->parent) iter = iter->parent;
*ret = iter; }
I may be bored.