Change C style cast to reinterpret_cast

static_cast won't cast between pointer types, reinterpret_cast will.
This commit is contained in:
Vasily
2018-12-27 14:18:03 +01:00
parent b452e68456
commit d9a4da5f5d
@@ -25,7 +25,7 @@ void sendKeyboardInputRaw(int inputCount, LPINPUT input) {
nullptr,
errCode,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language
(LPTSTR)&err,
reinterpret_cast<LPTSTR>(&err),
0,
nullptr)){
LOG(ERROR) << "Error calling SendInput(): Could not get error message (" << errCode << ")";