Change C style cast to reinterpret_cast
static_cast won't cast between pointer types, reinterpret_cast will.
This commit is contained in:
@@ -25,7 +25,7 @@ void sendKeyboardInputRaw(int inputCount, LPINPUT input) {
|
|||||||
nullptr,
|
nullptr,
|
||||||
errCode,
|
errCode,
|
||||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language
|
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language
|
||||||
(LPTSTR)&err,
|
reinterpret_cast<LPTSTR>(&err),
|
||||||
0,
|
0,
|
||||||
nullptr)){
|
nullptr)){
|
||||||
LOG(ERROR) << "Error calling SendInput(): Could not get error message (" << errCode << ")";
|
LOG(ERROR) << "Error calling SendInput(): Could not get error message (" << errCode << ")";
|
||||||
|
|||||||
Reference in New Issue
Block a user