https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fb9571ee3c9b0cacd985e…
commit fb9571ee3c9b0cacd985e1c1a9ab2cd3c37bcaf5
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Mon Sep 25 20:15:18 2023 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Oct 20 09:35:14 2024 +0300
[WIN32K] Use UserRefObjectCo in co_UserFreeWindow
---
win32ss/user/ntuser/window.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/win32ss/user/ntuser/window.c b/win32ss/user/ntuser/window.c
index a21c559d9ff..d67cad4d044 100644
--- a/win32ss/user/ntuser/window.c
+++ b/win32ss/user/ntuser/window.c
@@ -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;