- Fix an incorrect length value that corrupted REG_MULTI_SZ values when they had strings appended
- I'm not sure if this is synced with WINE, but if it is, they need this patch too
svn path=/trunk/; revision=47267
if (total != size)
{
TRACE( "setting value %s to %s\n", debugstr_w(value), debugstr_w(buffer) );
- RegSetValueExW( hkey, value, 0, REG_MULTI_SZ, (BYTE *)buffer, total );
+ RegSetValueExW( hkey, value, 0, REG_MULTI_SZ, (BYTE *)buffer, total + sizeof(WCHAR) );
}
done:
HeapFree( GetProcessHeap(), 0, buffer );