Index: /trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp	(revision 86550)
+++ /trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp	(revision 86551)
@@ -3006,10 +3006,11 @@
              * Verify other signatures with the same digest type.
              */
-            RTLDRPEHASHRESUNION const * const pHashRes = &pInfo->HashRes;
+            RTLDRPEHASHRESUNION const * const pHashRes      = &pInfo->HashRes;
+            RTDIGESTTYPE const                enmDigestType = pInfo->enmDigest;
             for (uint32_t i = 0; i < pSignature->cNested; i++)
             {
                 pInfo = &pSignature->paNested[i]; /* Note! pInfo changes! */
                 if (   !pInfo->fValidatedImageHash
-                    && pInfo->enmDigest == pInfo->enmDigest
+                    && pInfo->enmDigest == enmDigestType
                     /* paranoia from the top of this function: */
                     && pInfo->pIndData
