diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-10 01:04:00 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-09-10 01:04:00 +0000 |
commit | e009609938f0cd2b14f0300aa385a63f777631be (patch) | |
tree | f726a3a198d16f14f7f48c48b1d85c86eec284fb /EdkCompatibilityPkg/Foundation/Library/EfiCommonLib | |
parent | 18bd7f34e9024d9e5348f2db1106fbd457e9b38c (diff) | |
download | edk2-platforms-e009609938f0cd2b14f0300aa385a63f777631be.tar.xz |
Refine some code to make the code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10863 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation/Library/EfiCommonLib')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c b/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c index 4f79ecd173..023eda0b0e 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c +++ b/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c @@ -49,7 +49,7 @@ Returns: --*/
{
- Data->HeaderSize = sizeof (EFI_STATUS_CODE_DATA);
+ Data->HeaderSize = (UINT16) sizeof (EFI_STATUS_CODE_DATA);
Data->Size = (UINT16)(DataSize - sizeof (EFI_STATUS_CODE_DATA));
EfiCommonLibCopyMem (&Data->Type, TypeGuid, sizeof (EFI_GUID));
|