[edk2] [PATCH] * MdePkg: Add UEFI2.6 HII Font protocol definitions.

2016-03-28 Thread Cecil Sheng
Add the definition for the new UEFI 2.6 EFI_HII_FONT_EX_PROTOCOL and EFI_HII_FONT_GLYPH_GENERATOR_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Abner Chang --- MdePkg/Include/Protocol/HiiFontEx.h

[edk2] [PATCH v2] MdeModulePkg: Fixed incorrect Regular expression protocol MatchString return value.

2016-03-18 Thread Cecil Sheng
According to UEFI2.6, CapturePtr in the Captures array returned by MatchString() should be separatedly allocated so that they can be freed by the caller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud

[edk2] [PATCH v3] MdeModulePkg: Fixed incorrect return value of MatchString

2016-03-18 Thread Cecil Sheng
In UEFI2.6, CapturePtr's in the Captures array returned by MatchString are to be separatedly allocated so that they can be freed by the caller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud --- .../RegularExpressi

[edk2] [PATCH v7] MdePkg: Add UEFI2.6 HII Image Ex and Image Decoder protocol definition.

2016-03-13 Thread Cecil Sheng
Add the definition for the new UEFI 2.6 EFI_HII_IMAGE_EX_PROTOCOL and EFI_IMAGE_DECODER_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Abner Chang Reviewed-by: Eric Dong --- MdePkg/Include/Protocol

[edk2] [PATCH v6] MdePkg: Add UEFI2.6 HII Image Ex and Image Decoder protocol definition.

2016-03-07 Thread Cecil Sheng
Add the definition for the new UEFI 2.6 EFI_HII_IMAGE_EX_PROTOCOL and EFI_IMAGE_DECODER_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Abner Chang --- MdePkg/Include/Protocol/HiiImageEx.h | 245

[edk2] [PATCH v5] MdePkg: Add UEFI2.6 HII Image Ex and Image Decoder protocol definition.

2016-03-07 Thread Cecil Sheng
Add the definition for the new UEFI 2.6 EFI_HII_IMAGE_EX_PROTOCOL and EFI_IMAGE_DECODER_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Abner Chang --- MdePkg/Include/Protocol/HiiImageEx.h | 245

[edk2] [PATCH v4] MdePkg: Add UEFI2.6 HII Image Ex and Image Decoder protocol definition.

2016-03-06 Thread Cecil Sheng
Add the definition for the new UEFI 2.6 EFI_HII_IMAGE_EX_PROTOCOL and EFI_IMAGE_DECODER_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Abner Chang --- MdePkg/Include/Protocol/HiiImageEx.h | 245

[edk2] [PATCH v3] MdeModulePkg: Improved SetupBrowser handling to failed GOTO callback.

2016-03-03 Thread Cecil Sheng
On a failed REF_OP callback, all changed fields in the Selection should be restored. Signed-off-by: Cecil Sheng --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe

[edk2] [PATCH v2] MdePkg: Add UEFI2.6 HII Image Ex and Image Decoder protocol definition.

2016-03-01 Thread Cecil Sheng
Add the definition for the new UEFI 2.6 EFI_HII_IMAGE_EX_PROTOCOL and EFI_IMAGE_DECODER_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Abner Chang --- MdePkg/Include/Protocol/HiiImageEx.h | 234

[edk2] [PATCH] MdeModulePkg: Fixed incorrect Regular expression protocol MatchString return value.

2016-02-29 Thread Cecil Sheng
According to UEFI2.6, CapturePtr in the Captures array returned by MatchString() should be separatedly allocated so that they can be freed by the caller. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud

[edk2] [PATCH] MdePkg: Add UEFI2.6 HII Image Ex and Image Decoder protocol definition.

2016-02-25 Thread Cecil Sheng
Add the definition for the new UEFI 2.6 EFI_HII_IMAGE_EX_PROTOCOL and EFI_IMAGE_DECODER_PROTOCOL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Abner Chang --- MdePkg/Include/Protocol/HiiImageEx.h | 234

[edk2] [PATCH v2] MdeModulePkg: Improved SetupBrowser handling to failed GOTO callback.

2015-12-14 Thread Cecil Sheng
On a failed REF_OP callback, all changed fields in the Selection should be restored. Signed-off-by: Cecil Sheng --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe

[edk2] [PATCH] MdeModulePkg: Improved SetupBrowser handling to failed GOTO callback.

2015-12-13 Thread Cecil Sheng
On a failed REF_OP callback, all changed fields in the Selection should be restored. Signed-off-by: Cecil Sheng --- MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe

[edk2] [PATCH v2] ShellPkg: Corrected CatSPrint usage to prevent memory leaks.

2015-11-18 Thread Cecil Sheng
CatSPrint allocates return buffer for the caller. The caller doesn't have to allocate one, and has to free the used buffers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng --- .../UefiHandleParsingLib/UefiHandleParsingLib.c| 232 +++

[edk2] [PATCH] ShellPkg: Corrected CatSPrint usage to prevent memory leaks.

2015-11-17 Thread Cecil Sheng
CatSPrint allocates return buffer for the caller. The caller doesn't have to allocate one, and has to free the used buffers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cecil Sheng --- .../UefiHandleParsingLib/UefiHandleParsingLib.c| 231 +++