From 1a82ed3d0a6a5b4657c0d916a2139b450743b29b Mon Sep 17 00:00:00 2001 From: lgao4 Date: Wed, 6 May 2009 03:17:45 +0000 Subject: 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 --- MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'MdePkg') 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: -- cgit v1.2.3