mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:22:57 +00:00
Fix Tag Usage
svn path=/trunk/; revision=15487
This commit is contained in:
parent
1d899ce8b3
commit
53db168c0d
1 changed files with 8 additions and 22 deletions
|
@ -563,29 +563,15 @@ ObpCreateTypeObject(POBJECT_TYPE_INITIALIZER ObjectTypeInitializer,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if 0
|
CHAR Tag[4];
|
||||||
ANSI_STRING Tag;
|
Tag[0] = TypeName->Buffer[0];
|
||||||
ULONG i;
|
Tag[1] = TypeName->Buffer[1];
|
||||||
|
Tag[2] = TypeName->Buffer[2];
|
||||||
|
Tag[3] = TypeName->Buffer[3];
|
||||||
|
|
||||||
DPRINT1("Convert: %wZ \n", TypeName);
|
/* Set Tag */
|
||||||
Status = RtlUnicodeStringToAnsiString(&Tag, TypeName, TRUE);
|
DPRINT1("Convert: %s \n", Tag);
|
||||||
DPRINT1("Convert done\n");
|
LocalObjectType->Key = *(PULONG)Tag;
|
||||||
if (NT_SUCCESS(Status))
|
|
||||||
{
|
|
||||||
/* Add spaces if needed */
|
|
||||||
for (i = 3; i >= Tag.Length; i--) Tag.Buffer[i] = ' ';
|
|
||||||
|
|
||||||
/* Use the first four letters */
|
|
||||||
LocalObjectType->Key = *(PULONG)Tag.Buffer;
|
|
||||||
ExFreePool(Tag.Buffer);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
/* Some weird problem. Use Unicode name */
|
|
||||||
LocalObjectType->Key = *(PULONG)TypeName->Buffer;
|
|
||||||
Status = STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set it up */
|
/* Set it up */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue