mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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;
|
*NameLength = Length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (NameLength != NULL)
|
||||||
|
{
|
||||||
|
*NameLength = (Entry->NameLength + 1) * sizeof(WCHAR);
|
||||||
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
@ -651,6 +655,10 @@ RtlQueryAtomInAtomTable(PRTL_ATOM_TABLE AtomTable,
|
||||||
*NameLength = Length;
|
*NameLength = Length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (NameLength != NULL)
|
||||||
|
{
|
||||||
|
*NameLength = (Entry->NameLength + 1) * sizeof(WCHAR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -208,7 +208,7 @@ IntGetClassName(struct _WINDOW_OBJECT *WindowObject, LPWSTR lpClassName,
|
||||||
Length = 0;
|
Length = 0;
|
||||||
Status = RtlQueryAtomInAtomTable(WinStaObject->AtomTable,
|
Status = RtlQueryAtomInAtomTable(WinStaObject->AtomTable,
|
||||||
WindowObject->Class->Atom, NULL, NULL, NULL, &Length);
|
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,
|
Status = RtlQueryAtomInAtomTable(WinStaObject->AtomTable,
|
||||||
WindowObject->Class->Atom, NULL, NULL, Name, &Length);
|
WindowObject->Class->Atom, NULL, NULL, Name, &Length);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
|
Loading…
Reference in a new issue