Fixed one bug of WriteUnaligned24()
authorvanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 31 May 2006 08:46:41 +0000 (08:46 +0000)
committervanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 31 May 2006 08:46:41 +0000 (08:46 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@342 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdePkg/Library/BaseLib/Unaligned.c

index a54a99e..2ce8fc6 100644 (file)
@@ -113,7 +113,8 @@ WriteUnaligned24 (
 {\r
   ASSERT (Buffer != NULL);\r
 \r
-  return *Buffer = BitFieldWrite32 (*Buffer, 0, 23, Value);\r
+  BitFieldWrite32 (*Buffer, 0, 23, Value);\r
+  return Value;\r
 }\r
 \r
 /**\r