Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klass <kissaki@posteo.de>2017-07-10 20:21:53 +0300
committerJan Klass <kissaki@posteo.de>2017-07-11 01:42:08 +0300
commitce864c77d709098400f4597363133327348aef83 (patch)
tree46ef860fa76467c18fd13af4c372299f9ab45fc2 /overlay/dxgi.cpp
parent8029f3fe4a07418485479348d462ec95f7d3f9a5 (diff)
Cast to correct API types
It is better to be explicit and API correct, even if the resulting types ended up to be the same through typedefs or the implementation reinterpret-casting to a memory address pointer.
Diffstat (limited to 'overlay/dxgi.cpp')
-rw-r--r--overlay/dxgi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/dxgi.cpp b/overlay/dxgi.cpp
index 03fb1165b..58748682c 100644
--- a/overlay/dxgi.cpp
+++ b/overlay/dxgi.cpp
@@ -148,7 +148,7 @@ void hookDXGI(HMODULE hDXGI, bool preonly) {
// Add a ref to ourselves; we do NOT want to get unloaded directly from this process.
HMODULE hTempSelf = NULL;
- GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, reinterpret_cast<char *>(&hookDXGI), &hTempSelf);
+ GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, reinterpret_cast<LPCTSTR>(&hookDXGI), &hTempSelf);
bHooked = true;