Re: services.exe[2/8]: load services list from registry
26 Sep
2007
26 Sep
'07
12:01 p.m.
"Mikolaj Zalewski" <mikolajz(a)google.com> writes:
+ buf = HeapAlloc(GetProcessHeap(), 0, size + 4); + if ((err = RegQueryValueExW(hKey, szValue, 0, &type, (LPBYTE)buf, &size)) != 0) + goto failed; + buf[size/2] = 0; + buf[size/2 + 1] = 0;
Please use sizeof(WCHAR) instead of hardcoding values like 2 and 4. -- Alexandre Julliard julliard(a)winehq.org
6651
Age (days ago)
6651
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard