From 29ec49a58a61db348e103111089b4b77802e3add Mon Sep 17 00:00:00 2001 From: qwang12 Date: Tue, 20 May 2008 01:40:17 +0000 Subject: [PATCH] 1) Fix a bug in UC2_PRIVATE_DATA_FROM_THIS 2) Fix a typo git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5224 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.c | 4 ++-- .../Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.inf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.c b/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.c index 233f2a043c..38e5be3699 100644 --- a/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.c +++ b/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.c @@ -163,7 +163,7 @@ typedef struct { EFI_UNICODE_COLLATION_PROTOCOL *UC; } UC2_PRIVATE_DATA; -#define UC2_PRIVATE_DATA_FROM_THIS(a) CR (a, UC2_PRIVATE_DATA, UC, UC2_PRIVATE_DATA_SIGNATURE) +#define UC2_PRIVATE_DATA_FROM_THIS(a) CR (a, UC2_PRIVATE_DATA, UC2, UC2_PRIVATE_DATA_SIGNATURE) // // Firmware Volume Protocol template @@ -251,7 +251,7 @@ Uc2NotificationEvent ( // Fill in rest of private data structure // Private->UC2.SupportedLanguages = AllocateZeroPool (RFC_3066_ENTRY_SIZE); - Status = ConvertIso639LanguageToRfc3066Language (Private->UC->SupportedLanguages ,Private->UC2.SupportedLanguages); + Status = ConvertIso639LanguageToRfc3066Language (Private->UC->SupportedLanguages, Private->UC2.SupportedLanguages); if (!EFI_ERROR (Status)) { diff --git a/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.inf b/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.inf index 50fae2da50..f65ed41032 100644 --- a/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.inf +++ b/EdkCompatibilityPkg/Compatibility/Uc2ToUcThunk/Uc2ToUcThunk.inf @@ -2,7 +2,7 @@ # Module produce UC2 on top of UC. # # UEFI 2.1 specification supersedes Inte's EFI Specification 1.10. -# EFI_UNICODE_COLLATION_PROTOCOL defined in Inte's EFI Specification 1.10 is replaced by +# UNICODE_COLLATION_PROTOCOL defined in Inte's EFI Specification 1.10 is replaced by # EFI_UNICODE_COLLATION_PROTOCOL in UEFI 2.1. # This module produces UC2 on top of UC. This module is used on platform when both of # these two conditions are true: