Fixed one bug of WriteUnaligned24()
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 May 2006 08:46:41 +0000 (08:46 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 May 2006 08:46:41 +0000 (08:46 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@342 6f19259b-4bc3-4df7-8a09-765794883524

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