]> git.proxmox.com Git - mirror_edk2.git/commitdiff
changed the format when use "=="
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Sep 2008 05:28:47 +0000 (05:28 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Sep 2008 05:28:47 +0000 (05:28 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5859 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c

index 960c746357e2d4711486d38cfcb3e63be0f3ba6b..81a279afcad0af2a36ae126164d87ed6c6317e50 100644 (file)
@@ -247,7 +247,7 @@ PeCoffLoaderGetPdbPointer (
   // Scan the directory to find the debug entry.\r
   // \r
   for (DirCount = 0; DirCount < DirectoryEntry->Size; DirCount += sizeof (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY), DebugEntry++) {\r
-    if (EFI_IMAGE_DEBUG_TYPE_CODEVIEW == DebugEntry->Type) {\r
+    if (DebugEntry->Type == EFI_IMAGE_DEBUG_TYPE_CODEVIEW) {\r
       if (DebugEntry->SizeOfData > 0) {\r
         CodeViewEntryPointer = (VOID *) ((UINTN) DebugEntry->RVA + ((UINTN)Pe32Data) + (UINTN)TEImageAdjust);\r
         switch (* (UINT32 *) CodeViewEntryPointer) {\r