X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FUniversal%2FStatusCode%2FDxe%2FCommon%2FDxeStatusCodeCommon.c;h=2468078d85cfc67ee8ceaec9f7125d7361c9979e;hp=730a231c0bef0162038d8725eddde99b6e9f87d2;hb=afaa1b87a4f1322491edd545500510b595254eab;hpb=abce9cbd99ef521ec601e2525bc3c92113567c3c diff --git a/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c b/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c index 730a231c0b..2468078d85 100644 --- a/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c +++ b/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c @@ -149,7 +149,7 @@ ReportDispatcher ( // Use atom operation to avoid the reentant of report. // If current status is not zero, then the function is reentrancy. // - if (InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) { + if (1 == InterlockedCompareExchange32 (&gDxeStatusCode.StatusCodeNestStatus, 0, 1)) { return EFI_DEVICE_ERROR; }