From 6edd7697ec83dcad2a87123c254aeb39c6997d89 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Wed, 31 May 2006 08:46:41 +0000 Subject: Fixed one bug of WriteUnaligned24() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@342 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Unaligned.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MdePkg/Library/BaseLib/Unaligned.c') diff --git a/MdePkg/Library/BaseLib/Unaligned.c b/MdePkg/Library/BaseLib/Unaligned.c index a54a99e7e6..2ce8fc6992 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; } /** -- cgit v1.2.3