- Oops.. fix a bug in RtlRemoveUnicodePrefix: edit the parent, not the entry itself.
authorAlex Ionescu <aionescu@gmail.com>
Mon, 7 Nov 2005 22:07:08 +0000 (22:07 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Mon, 7 Nov 2005 22:07:08 +0000 (22:07 +0000)
svn path=/trunk/; revision=19047

reactos/lib/rtl/unicodeprefix.c

index 4607514..fdbffd5 100644 (file)
@@ -433,12 +433,12 @@ RtlRemoveUnicodePrefix(PUNICODE_PREFIX_TABLE PrefixTable,
             else if (RtlIsLeftChild(&PrefixTableEntry->Links))
             {
                 /* We were the left child, so make us as well */
-                PrefixTableEntry->Links.LeftChild = &Entry->Links;
+                RtlParent(&PrefixTableEntry->Links)->LeftChild = &Entry->Links;
             }
             else
             {
                 /* We were the right child, so make us as well */
-                PrefixTableEntry->Links.RightChild = &Entry->Links;
+                RtlParent(&PrefixTableEntry->Links)->RightChild = &Entry->Links;
             }
 
             /* Check if we have a left child */