dinput: GetKeyNameW takes chars not bytes (Coverity).
This commit is contained in:
parent
5f85b7c8ac
commit
8990cf091d
|
@ -439,7 +439,7 @@ static HRESULT WINAPI SysKeyboardWImpl_GetObjectInfo(LPDIRECTINPUTDEVICE8W iface
|
|||
scan = DIDFT_GETINSTANCE(pdidoi->dwType);
|
||||
if (scan == DIK_PAUSE || scan == DIK_NUMLOCK) scan ^= 0x80;
|
||||
if (!GetKeyNameTextW((scan & 0x80) << 17 | (scan & 0x7f) << 16,
|
||||
pdidoi->tszName, sizeof(pdidoi->tszName)))
|
||||
pdidoi->tszName, sizeof(pdidoi->tszName)/sizeof(pdidoi->tszName[0])))
|
||||
return DIERR_OBJECTNOTFOUND;
|
||||
|
||||
_dump_OBJECTINSTANCEW(pdidoi);
|
||||
|
|
Loading…
Reference in New Issue