msi: Fix the size of the data sent in to RegSetValueExW.

oldstable
James Hawkins 2008-02-21 21:47:13 -06:00 committed by Alexandre Julliard
parent 04ba306690
commit 88c7c2c7a1
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ static UINT set_last_used_source(HKEY source, LPCWSTR product, LPCWSTR usersid,
sprintfW(buffer, format, typechar, index, value);
size = (lstrlenW(buffer) + 1) * sizeof(WCHAR);
r = RegSetValueExW(source, INSTALLPROPERTY_LASTUSEDSOURCEW, 0,
REG_SZ, (LPBYTE)buffer, size);
msi_free(buffer);