Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Index: window.c
  2. ===================================================================
  3. --- window.c (revision 65084)
  4. +++ window.c (working copy)
  5. @@ -1992,6 +1992,13 @@
  6. ParentWindow = hWndParent ? UserGetWindowObject(hWndParent): NULL;
  7. OwnerWindow = hWndOwner ? UserGetWindowObject(hWndOwner): NULL;
  8.  
  9. + if (ParentWindow == NULL && (Cs->style & (WS_CHILD|WS_POPUP)) == WS_CHILD)
  10. + {
  11. + ERR("Cannot create a child window with a destroyed parent!\n");
  12. + EngSetLastError(ERROR_TLW_WITH_WSCHILD);
  13. + goto cleanup;
  14. + }
  15. +
  16. /* FIXME: Is this correct? */
  17. if(OwnerWindow)
  18. OwnerWindow = UserGetAncestor(OwnerWindow, GA_ROOT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement