msi: Fixed deformat_environment to not cut off string.

This commit is contained in:
Magnus Olsen 2005-12-19 18:17:28 +01:00 committed by Alexandre Julliard
parent 2bee5ab04e
commit a06aa5e996

View File

@ -151,7 +151,7 @@ static LPWSTR deformat_environment(MSIPACKAGE* package, LPCWSTR key,
{
sz++;
value = msi_alloc(sz * sizeof(WCHAR));
GetEnvironmentVariableW(&key[1],value,sz);
GetEnvironmentVariableW(key,value,sz);
*chunk = (strlenW(value)) * sizeof(WCHAR);
}
else