From: Alex Ionescu Date: Mon, 7 Nov 2005 22:07:08 +0000 (+0000) Subject: - Oops.. fix a bug in RtlRemoveUnicodePrefix: edit the parent, not the entry itself. X-Git-Tag: backups/ros-branch-0_2_9@19949~851 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=e57c6af31561c78ba902f6c1e329ac39afd0ae78;hp=9810da1c6af9cc70e14f4ed62f7021f13671a985 - Oops.. fix a bug in RtlRemoveUnicodePrefix: edit the parent, not the entry itself. svn path=/trunk/; revision=19047 --- diff --git a/reactos/lib/rtl/unicodeprefix.c b/reactos/lib/rtl/unicodeprefix.c index 4607514e1d2..fdbffd579d9 100644 --- a/reactos/lib/rtl/unicodeprefix.c +++ b/reactos/lib/rtl/unicodeprefix.c @@ -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 */