mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +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;
|
PWND Child;
|
||||||
PMENU Menu;
|
PMENU Menu;
|
||||||
BOOLEAN BelongsToThreadData;
|
BOOLEAN BelongsToThreadData;
|
||||||
|
USER_REFERENCE_ENTRY Ref;
|
||||||
|
|
||||||
ASSERT(Window);
|
ASSERT(Window);
|
||||||
|
|
||||||
|
@ -740,7 +741,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
||||||
WndSetChild(Window, NULL);
|
WndSetChild(Window, NULL);
|
||||||
WndSetLastActive(Window, NULL);
|
WndSetLastActive(Window, NULL);
|
||||||
|
|
||||||
UserReferenceObject(Window);
|
UserRefObjectCo(Window, &Ref);
|
||||||
UserMarkObjectDestroy(Window);
|
UserMarkObjectDestroy(Window);
|
||||||
|
|
||||||
IntDestroyScrollBars(Window);
|
IntDestroyScrollBars(Window);
|
||||||
|
@ -769,7 +770,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
||||||
// ASSERT(Window != NULL);
|
// ASSERT(Window != NULL);
|
||||||
UserFreeWindowInfo(Window->head.pti, Window);
|
UserFreeWindowInfo(Window->head.pti, Window);
|
||||||
|
|
||||||
UserDereferenceObject(Window);
|
UserDerefObjectCo(Window);
|
||||||
UserDeleteObject(UserHMGetHandle(Window), TYPE_WINDOW);
|
UserDeleteObject(UserHMGetHandle(Window), TYPE_WINDOW);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue