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.


Reply via email to