ntdll: Don't use HIWORD to check if an atom is a small int.

This commit is contained in:
Michael Stefaniuc 2011-09-05 11:18:17 +02:00 committed by Alexandre Julliard
parent bbed41fa6a
commit 5a886316b4
1 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ NTSTATUS WINAPI RtlAddAtomToAtomTable( RTL_ATOM_TABLE table, const WCHAR* name,
if (!table) status = STATUS_INVALID_PARAMETER;
else
{
size_t len = HIWORD(name) ? strlenW(name) : 0;
size_t len = IS_INTATOM(name) ? 0 : strlenW(name);
status = is_integral_atom( name, len, atom );
if (status == STATUS_MORE_ENTRIES)
{
@ -242,7 +242,7 @@ NTSTATUS WINAPI RtlLookupAtomInAtomTable( RTL_ATOM_TABLE table, const WCHAR* nam
if (!table) status = STATUS_INVALID_PARAMETER;
else
{
size_t len = HIWORD(name) ? strlenW(name) : 0;
size_t len = IS_INTATOM(name) ? 0 : strlenW(name);
status = is_integral_atom( name, len, atom );
if (status == STATUS_MORE_ENTRIES)
{