summaryrefslogtreecommitdiff
path: root/MdePkg/Library
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-31 08:46:41 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-31 08:46:41 +0000
commit6edd7697ec83dcad2a87123c254aeb39c6997d89 (patch)
tree612e7fef5cd1294eb49b4efc417af00dff320ac5 /MdePkg/Library
parent94e68c3e105329527813ee11bfba21c5a64cda17 (diff)
downloadedk2-6edd7697ec83dcad2a87123c254aeb39c6997d89.zip
edk2-6edd7697ec83dcad2a87123c254aeb39c6997d89.tar.gz
edk2-6edd7697ec83dcad2a87123c254aeb39c6997d89.tar.bz2
Fixed one bug of WriteUnaligned24()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@342 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library')
-rw-r--r--MdePkg/Library/BaseLib/Unaligned.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/Unaligned.c b/MdePkg/Library/BaseLib/Unaligned.c
index a54a99e..2ce8fc6 100644
--- a/MdePkg/Library/BaseLib/Unaligned.c
+++ b/MdePkg/Library/BaseLib/Unaligned.c
@@ -113,7 +113,8 @@ WriteUnaligned24 (
{
ASSERT (Buffer != NULL);
- return *Buffer = BitFieldWrite32 (*Buffer, 0, 23, Value);
+ BitFieldWrite32 (*Buffer, 0, 23, Value);
+ return Value;
}
/**