Re: [4/5] dinput: Added device's owner username set by SetActionMap and the respective GetProperty to retrieve it
July 11, 2011
8:20 a.m.
On 07/08/2011 12:01 PM, Lucas Fialho Zawacki wrote:
+ memcpy(ps->wsz, This->owner, strlenW(This->owner)*sizeof(WCHAR)); You can use strcpyW instead. Or even lstrcpynW to guard against buffer overflow.
@@ -1459,10 +1469,22 @@ HRESULT WINAPI IDirectInputDevice8WImpl_SetActionMap(LPDIRECTINPUTDEVICE8W iface LPCWSTR lpszUserName, DWORD dwFlags) You need to modify ascii version of SetActionMap as well.
Vitaliy.
5372
Age (days ago)
5372
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vitaliy Margolen