mirror of
https://github.com/reactos/reactos.git
synced 2024-06-01 10:11:43 +00:00
[WIN32K] Use UserRefObjectCo in co_UserFreeWindow
This commit is contained in:
parent
e48ab8fb82
commit
609965162a
|
@ -581,6 +581,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
|||
PWND Child;
|
||||
PMENU Menu;
|
||||
BOOLEAN BelongsToThreadData;
|
||||
USER_REFERENCE_ENTRY Ref;
|
||||
|
||||
ASSERT(Window);
|
||||
|
||||
|
@ -738,7 +739,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
|||
WndSetChild(Window, NULL);
|
||||
WndSetLastActive(Window, NULL);
|
||||
|
||||
UserReferenceObject(Window);
|
||||
UserRefObjectCo(Window, &Ref);
|
||||
UserMarkObjectDestroy(Window);
|
||||
|
||||
IntDestroyScrollBars(Window);
|
||||
|
@ -767,7 +768,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