Re: [3/5] dinput: SetActionMap setting username
10 Jan
2012
10 Jan
'12
2:51 a.m.
On 01/09/2012 10:18 AM, Lucas Fialho Zawacki wrote:
From: Lucas Fialho Zawacki<lfzawacki(a)gmail.com>
+ /* Set username in device */ + HeapFree(GetProcessHeap(), 0, This->username); + This->username = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR) * (lstrlenW(username) + 1)); + lstrcpyW(This->username, username); No error checking if allocation fails.
+ + /* Free username */ + HeapFree(GetProcessHeap(), 0, This->username); + Comment is kind of redundant the property already called "username".
Vitaliy.
5088
Age (days ago)
5088
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vitaliy Margolen