From d9a4da5f5d38dc8c308441802f85ad4f7e357cec Mon Sep 17 00:00:00 2001 From: Vasily Date: Thu, 27 Dec 2018 14:18:03 +0100 Subject: [PATCH] Change C style cast to reinterpret_cast static_cast won't cast between pointer types, reinterpret_cast will. --- src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp b/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp index b4f7b6e..471f27a 100644 --- a/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp +++ b/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp @@ -25,7 +25,7 @@ void sendKeyboardInputRaw(int inputCount, LPINPUT input) { nullptr, errCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language - (LPTSTR)&err, + reinterpret_cast(&err), 0, nullptr)){ LOG(ERROR) << "Error calling SendInput(): Could not get error message (" << errCode << ")";