diff options
author | Jan <sentrycraft123@gmail.com> | 2024-06-16 13:14:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-16 13:14:24 +0200 |
commit | f75aff142508796ba66cc43c3135cbb317c920db (patch) | |
tree | 3006bc4fb0b153bd8397bcab26b8cea217434084 | |
parent | 4a716e54f7a33ed5c2cf8bc2eb508fa1b2f4991a (diff) | |
download | NorthstarLauncher-1.24.7-rc6.tar.gz NorthstarLauncher-1.24.7-rc6.zip |
Use double brackets to let compiler know assignment is intentional (#707)v1.25.0-rc1v1.24.7-rc6v1.24.7-rc5v1.24.7-rc4v1.24.7-rc3v1.24.7
Use double brackets to let compiler know that assignment inside `if` statement is intentional and not the cause of a missing second `=`.
-rw-r--r-- | primedev/client/latencyflex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/primedev/client/latencyflex.cpp b/primedev/client/latencyflex.cpp index 25e38c7a..39557870 100644 --- a/primedev/client/latencyflex.cpp +++ b/primedev/client/latencyflex.cpp @@ -24,10 +24,10 @@ ON_DLL_LOAD_CLIENT_RELIESON("client.dll", LatencyFlex, ConVar, (CModule module)) // https://ishitatsuyuki.github.io/post/latencyflex/ HMODULE pLfxModule; - if (pLfxModule = LoadLibraryA("latencyflex_layer.dll")) + if ((pLfxModule = LoadLibraryA("latencyflex_layer.dll"))) m_winelfx_WaitAndBeginFrame = reinterpret_cast<void (*)()>(reinterpret_cast<void*>(GetProcAddress(pLfxModule, "lfx_WaitAndBeginFrame"))); - else if (pLfxModule = LoadLibraryA("latencyflex_wine.dll")) + else if ((pLfxModule = LoadLibraryA("latencyflex_wine.dll"))) m_winelfx_WaitAndBeginFrame = reinterpret_cast<void (*)()>(reinterpret_cast<void*>(GetProcAddress(pLfxModule, "winelfx_WaitAndBeginFrame"))); else |