mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[WIN32K:NTUSER]
- Don't call IntGetProp from outside prop.c svn path=/trunk/; revision=69491
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
PPROPERTY
|
||||
FASTCALL
|
||||
IntGetProp(
|
||||
_In_ PWND Window,
|
||||
_In_ ATOM Atom);
|
||||
|
||||
HANDLE
|
||||
FASTCALL
|
||||
UserGetProp(
|
||||
|
||||
@@ -600,7 +600,7 @@ NtUserCallHwnd(
|
||||
case HWND_ROUTINE_GETWNDCONTEXTHLPID:
|
||||
{
|
||||
PWND Window;
|
||||
PPROPERTY HelpId;
|
||||
DWORD HelpId;
|
||||
USER_REFERENCE_ENTRY Ref;
|
||||
|
||||
UserEnterExclusive();
|
||||
@@ -612,11 +612,11 @@ NtUserCallHwnd(
|
||||
}
|
||||
UserRefObjectCo(Window, &Ref);
|
||||
|
||||
HelpId = IntGetProp(Window, gpsi->atomContextHelpIdProp);
|
||||
HelpId = (DWORD)(DWORD_PTR)UserGetProp(Window, gpsi->atomContextHelpIdProp);
|
||||
|
||||
UserDerefObjectCo(Window);
|
||||
UserLeave();
|
||||
return (DWORD)HelpId->Data;
|
||||
return HelpId;
|
||||
}
|
||||
case HWND_ROUTINE_REGISTERSHELLHOOKWINDOW:
|
||||
if (IntIsWindow(hWnd))
|
||||
|
||||
@@ -962,15 +962,12 @@ UserGethWnd( HDC hdc, PWNDOBJ *pwndo)
|
||||
XCLIPOBJ* Clip;
|
||||
PWND Wnd;
|
||||
HWND hWnd;
|
||||
PPROPERTY pprop;
|
||||
|
||||
hWnd = IntWindowFromDC(hdc);
|
||||
|
||||
if (hWnd && (Wnd = UserGetWindowObject(hWnd)))
|
||||
{
|
||||
pprop = IntGetProp(Wnd, AtomWndObj);
|
||||
|
||||
Clip = (XCLIPOBJ*)pprop->Data;
|
||||
Clip = (XCLIPOBJ*)UserGetProp(Wnd, AtomWndObj);
|
||||
|
||||
if ( Clip && Clip->Hwnd == hWnd )
|
||||
{
|
||||
|
||||
@@ -369,16 +369,16 @@ IntGetWindow(HWND hWnd,
|
||||
|
||||
DWORD FASTCALL IntGetWindowContextHelpId( PWND pWnd )
|
||||
{
|
||||
PPROPERTY HelpId;
|
||||
DWORD HelpId;
|
||||
|
||||
do
|
||||
{
|
||||
HelpId = IntGetProp(pWnd, gpsi->atomContextHelpIdProp);
|
||||
HelpId = (DWORD)(DWORD_PTR)UserGetProp(pWnd, gpsi->atomContextHelpIdProp);
|
||||
if (!HelpId) break;
|
||||
pWnd = IntGetParent(pWnd);
|
||||
}
|
||||
while (pWnd && pWnd->fnid != FNID_DESKTOP);
|
||||
return (DWORD) (HelpId ? HelpId->Data : 0 );
|
||||
return HelpId;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user