aboutsummaryrefslogtreecommitdiff
path: root/primedev/client
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2024-06-16 13:14:24 +0200
committerGitHub <noreply@github.com>2024-06-16 13:14:24 +0200
commitf75aff142508796ba66cc43c3135cbb317c920db (patch)
tree3006bc4fb0b153bd8397bcab26b8cea217434084 /primedev/client
parent4a716e54f7a33ed5c2cf8bc2eb508fa1b2f4991a (diff)
downloadNorthstarLauncher-f75aff142508796ba66cc43c3135cbb317c920db.tar.gz
NorthstarLauncher-f75aff142508796ba66cc43c3135cbb317c920db.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 `=`.
Diffstat (limited to 'primedev/client')
-rw-r--r--primedev/client/latencyflex.cpp4
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