msi: Fix the size of the data sent in to RegSetValueExW.
This commit is contained in:
parent
04ba306690
commit
88c7c2c7a1
|
@ -563,6 +563,7 @@ static UINT set_last_used_source(HKEY source, LPCWSTR product, LPCWSTR usersid,
|
||||||
|
|
||||||
sprintfW(buffer, format, typechar, index, value);
|
sprintfW(buffer, format, typechar, index, value);
|
||||||
|
|
||||||
|
size = (lstrlenW(buffer) + 1) * sizeof(WCHAR);
|
||||||
r = RegSetValueExW(source, INSTALLPROPERTY_LASTUSEDSOURCEW, 0,
|
r = RegSetValueExW(source, INSTALLPROPERTY_LASTUSEDSOURCEW, 0,
|
||||||
REG_SZ, (LPBYTE)buffer, size);
|
REG_SZ, (LPBYTE)buffer, size);
|
||||||
msi_free(buffer);
|
msi_free(buffer);
|
||||||
|
|
Loading…
Reference in New Issue