mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[WIN32K] Use UserRefObjectCo in co_UserFreeWindow
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user