From a00ec39b52224a40bf9a0a813b69cb43e14407a8 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sat, 20 Jun 2009 17:05:16 +0000 Subject: Fix ICC compatibility issues git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8616 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/DxeNt32PeCoffExtraActionLib/DxeNt32PeCoffExtraActionLib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Nt32Pkg/Library') diff --git a/Nt32Pkg/Library/DxeNt32PeCoffExtraActionLib/DxeNt32PeCoffExtraActionLib.c b/Nt32Pkg/Library/DxeNt32PeCoffExtraActionLib/DxeNt32PeCoffExtraActionLib.c index 23c19017d..0991fc6b9 100644 --- a/Nt32Pkg/Library/DxeNt32PeCoffExtraActionLib/DxeNt32PeCoffExtraActionLib.c +++ b/Nt32Pkg/Library/DxeNt32PeCoffExtraActionLib/DxeNt32PeCoffExtraActionLib.c @@ -159,6 +159,7 @@ AddModHandle ( PDB_NAME_TO_MOD_HANDLE *Array; UINTN PreviousSize; PDB_NAME_TO_MOD_HANDLE *TempArray; + HANDLE Handle; Array = mPdbNameModHandleArray; for (Index = 0; Index < mPdbNameModHandleArraySize; Index++, Array++) { @@ -166,7 +167,8 @@ AddModHandle ( // // Make a copy of the stirng and store the ModHandle // - Array->PdbPointer = mWinNt->HeapAlloc ( mWinNt->GetProcessHeap (), + Handle = mWinNt->GetProcessHeap (); + Array->PdbPointer = mWinNt->HeapAlloc ( Handle, HEAP_ZERO_MEMORY, AsciiStrLen (ImageContext->PdbPointer) + 1 ); -- cgit v1.2.3