mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
msi: Fixed deformat_environment to not cut off string.
This commit is contained in:
parent
2bee5ab04e
commit
a06aa5e996
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user