mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WIN32K] Use UserRefObjectCo in co_UserFreeWindow
This commit is contained in:
parent
08b9354ff3
commit
fb9571ee3c
1 changed files with 3 additions and 2 deletions
|
@ -583,6 +583,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
|||
PWND Child;
|
||||
PMENU Menu;
|
||||
BOOLEAN BelongsToThreadData;
|
||||
USER_REFERENCE_ENTRY Ref;
|
||||
|
||||
ASSERT(Window);
|
||||
|
||||
|
@ -740,7 +741,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
|||
WndSetChild(Window, NULL);
|
||||
WndSetLastActive(Window, NULL);
|
||||
|
||||
UserReferenceObject(Window);
|
||||
UserRefObjectCo(Window, &Ref);
|
||||
UserMarkObjectDestroy(Window);
|
||||
|
||||
IntDestroyScrollBars(Window);
|
||||
|
@ -769,7 +770,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
|||
// ASSERT(Window != NULL);
|
||||
UserFreeWindowInfo(Window->head.pti, Window);
|
||||
|
||||
UserDereferenceObject(Window);
|
||||
UserDerefObjectCo(Window);
|
||||
UserDeleteObject(UserHMGetHandle(Window), TYPE_WINDOW);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue