[WIN32K:NTUSER]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 10 Oct 2015 17:46:57 +0000 (17:46 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 10 Oct 2015 17:46:57 +0000 (17:46 +0000)
- Remove some unnecessary referencing in NtUserCallHwnd

svn path=/trunk/; revision=69492

reactos/win32ss/user/ntuser/simplecall.c

index 7d7d8f6..e5e73da 100644 (file)
@@ -601,20 +601,17 @@ NtUserCallHwnd(
       {
          PWND Window;
          DWORD HelpId;
-         USER_REFERENCE_ENTRY Ref;
 
-         UserEnterExclusive();
+         UserEnterShared();
 
          if (!(Window = UserGetWindowObject(hWnd)))
          {
             UserLeave();
             return 0;
          }
-         UserRefObjectCo(Window, &Ref);
 
          HelpId = (DWORD)(DWORD_PTR)UserGetProp(Window, gpsi->atomContextHelpIdProp);
 
-         UserDerefObjectCo(Window);
          UserLeave();
          return HelpId;
       }