Change NULL to nullptr
This commit is contained in:
@@ -22,12 +22,12 @@ void sendKeyboardInputRaw(int inputCount, LPINPUT input) {
|
|||||||
char *err;
|
char *err;
|
||||||
auto errCode = GetLastError();
|
auto errCode = GetLastError();
|
||||||
if (!FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
if (!FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||||
NULL,
|
nullptr,
|
||||||
errCode,
|
errCode,
|
||||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language
|
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language
|
||||||
(LPTSTR)&err,
|
(LPTSTR)&err,
|
||||||
0,
|
0,
|
||||||
NULL)){
|
nullptr)){
|
||||||
LOG(ERROR) << "Error calling SendInput(): Could not get error message (" << errCode << ")";
|
LOG(ERROR) << "Error calling SendInput(): Could not get error message (" << errCode << ")";
|
||||||
} else {
|
} else {
|
||||||
LOG(ERROR) << "Error calling SendInput(): " << err;
|
LOG(ERROR) << "Error calling SendInput(): " << err;
|
||||||
|
|||||||
Reference in New Issue
Block a user