mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Return atom length when requested. Fixes bug 793.
svn path=/trunk/; revision=17985
This commit is contained in:
parent
e6e62c37b3
commit
cb0c6e6a48
2 changed files with 9 additions and 1 deletions
|
@ -610,6 +610,10 @@ RtlQueryAtomInAtomTable(PRTL_ATOM_TABLE AtomTable,
|
|||
*NameLength = Length;
|
||||
}
|
||||
}
|
||||
else if (NameLength != NULL)
|
||||
{
|
||||
*NameLength = (Entry->NameLength + 1) * sizeof(WCHAR);
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
@ -651,6 +655,10 @@ RtlQueryAtomInAtomTable(PRTL_ATOM_TABLE AtomTable,
|
|||
*NameLength = Length;
|
||||
}
|
||||
}
|
||||
else if (NameLength != NULL)
|
||||
{
|
||||
*NameLength = (Entry->NameLength + 1) * sizeof(WCHAR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -208,7 +208,7 @@ IntGetClassName(struct _WINDOW_OBJECT *WindowObject, LPWSTR lpClassName,
|
|||
Length = 0;
|
||||
Status = RtlQueryAtomInAtomTable(WinStaObject->AtomTable,
|
||||
WindowObject->Class->Atom, NULL, NULL, NULL, &Length);
|
||||
Name = ExAllocatePoolWithTag(PagedPool, Length + sizeof(UNICODE_NULL), TAG_STRING);
|
||||
Name = ExAllocatePoolWithTag(PagedPool, Length, TAG_STRING);
|
||||
Status = RtlQueryAtomInAtomTable(WinStaObject->AtomTable,
|
||||
WindowObject->Class->Atom, NULL, NULL, Name, &Length);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
|
Loading…
Reference in a new issue