mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[WIN32K:NTUSER]
- Make IntRemoveProp return the property value and use it from NtUserRemoveProp svn path=/trunk/; revision=69488
This commit is contained in:
parent
7e1a5245cd
commit
4c064550ec
2 changed files with 7 additions and 16 deletions
|
@ -58,25 +58,27 @@ UserGetProp(
|
|||
}
|
||||
|
||||
_Success_(return)
|
||||
BOOL
|
||||
HANDLE
|
||||
FASTCALL
|
||||
IntRemoveProp(
|
||||
_In_ PWND Window,
|
||||
_In_ ATOM Atom)
|
||||
{
|
||||
PPROPERTY Prop;
|
||||
HANDLE Data;
|
||||
|
||||
NT_ASSERT(UserIsEnteredExclusive());
|
||||
Prop = IntGetProp(Window, Atom);
|
||||
if (Prop == NULL)
|
||||
{
|
||||
return FALSE;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Data = Prop->Data;
|
||||
RemoveEntryList(&Prop->PropListEntry);
|
||||
UserHeapFree(Prop);
|
||||
Window->PropListItems--;
|
||||
return TRUE;
|
||||
return Data;
|
||||
}
|
||||
|
||||
_Success_(return)
|
||||
|
@ -215,7 +217,6 @@ NtUserRemoveProp(
|
|||
_In_ ATOM Atom)
|
||||
{
|
||||
PWND Window;
|
||||
PPROPERTY Prop;
|
||||
HANDLE Data = NULL;
|
||||
|
||||
TRACE("Enter NtUserRemoveProp\n");
|
||||
|
@ -227,16 +228,7 @@ NtUserRemoveProp(
|
|||
goto Exit;
|
||||
}
|
||||
|
||||
Prop = IntGetProp(Window, Atom);
|
||||
if (Prop == NULL)
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
Data = Prop->Data;
|
||||
RemoveEntryList(&Prop->PropListEntry);
|
||||
UserHeapFree(Prop);
|
||||
Window->PropListItems--;
|
||||
Data = IntRemoveProp(Window, Atom);
|
||||
|
||||
Exit:
|
||||
TRACE("Leave NtUserRemoveProp, ret=%p\n", Data);
|
||||
|
|
|
@ -12,8 +12,7 @@ UserGetProp(
|
|||
_In_ PWND Window,
|
||||
_In_ ATOM Atom);
|
||||
|
||||
_Success_(return)
|
||||
BOOL
|
||||
HANDLE
|
||||
FASTCALL
|
||||
IntRemoveProp(
|
||||
_In_ PWND Window,
|
||||
|
|
Loading…
Reference in a new issue