Fix compiler warning

Fix warning 'C4189', variable 'hr' was only used in debug. The 'Assert' macro is just a stub in release.
This commit is contained in:
Kawe Mazidjatari 2023-07-19 18:56:01 +02:00
parent a0f0b79266
commit 3b661c22c8

View File

@ -139,9 +139,10 @@ static void DetachEP()
DetourUpdateThread(GetCurrentThread());
DetourDetach(&v_WinMain, &hWinMain);
HRESULT hr = DetourTransactionCommit();
Assert(hr != NO_ERROR);
NOTE_UNUSED(hr);
}
//-----------------------------------------------------------------------------