summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-06 03:17:45 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-06 03:17:45 +0000
commit1a82ed3d0a6a5b4657c0d916a2139b450743b29b (patch)
treeac6cb5bdfde301417ef2425232427e2adc03b249
parent57cca89e0aa24d3feb6322c556038edd3aad830f (diff)
downloadedk2-platforms-1a82ed3d0a6a5b4657c0d916a2139b450743b29b.tar.xz
Update BasePeCoff to Initialize the debug field to zero.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8243 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Library/BasePeCoffLib/BasePeCoff.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
index e3a7b5387b..fcdf0c6647 100644
--- a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
+++ b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c
@@ -254,10 +254,11 @@ PeCoffLoaderGetImageInfo (
ImageContext->DestinationAddress = 0;
//
- // Initialize the codeview pointer.
+ // Initialize the debug codeview pointer.
//
- ImageContext->CodeView = NULL;
- ImageContext->PdbPointer = NULL;
+ ImageContext->DebugDirectoryEntryRva = 0;
+ ImageContext->CodeView = NULL;
+ ImageContext->PdbPointer = NULL;
//
// Three cases with regards to relocations: