4 May
2023
4 May
'23
8:30 a.m.
Huw Davies (@huw) commented about dlls/sapi/token.c:
static HRESULT WINAPI data_key_SetStringValue( ISpRegDataKey *iface, LPCWSTR name, LPCWSTR value ) { - FIXME( "stub\n" ); - return E_NOTIMPL; + struct data_key *This = impl_from_ISpRegDataKey( iface ); + DWORD ret, size; + + TRACE( "%p, %s, %s\n", This, debugstr_w(name), debugstr_w(value) ); + + if (!This->key) + return E_HANDLE; + + size = (lstrlenW(value) + 1) * sizeof(WCHAR);
size = (wcslen(value) + 1) * sizeof(WCHAR);
These days (now that we link against msvcrt) we can use `wcslen()` (unless we really need the exception handler). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2741#note_31959