EmuKrnlEx: Fix std::atomic usage

This commit is contained in:
darkf 2020-04-07 01:58:08 -07:00
parent 95f6966a43
commit 3a5552e899
1 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ XBSYSAPI EXPORTNUM(20) xboxkrnl::VOID FASTCALL xboxkrnl::ExInterlockedAddLargeSt
LOG_FUNC_ARG(Increment)
LOG_FUNC_END;
auto &Target = std::atomic<LONGLONG>(Addend->QuadPart);
std::atomic<LONGLONG> Target(Addend->QuadPart);
Target.fetch_add(Increment);
}
@ -327,7 +327,7 @@ XBSYSAPI EXPORTNUM(21) xboxkrnl::LONGLONG FASTCALL xboxkrnl::ExInterlockedCompar
LOG_FUNC_ARG(Comparand)
LOG_FUNC_END;
auto &Target = std::atomic<LONGLONG>(*Destination);
std::atomic<LONGLONG> Target(*Destination);
LONGLONG Result = *Comparand;
Target.compare_exchange_strong(Result, *Exchange);