Ensure the validity of hOldFocus before calling WIN_GetTopParent.