in function deformat_environment did cut of one letter of GetEnvironmentVariableW...
authorMagnus Olsen <magnus@greatlord.com>
Sun, 18 Dec 2005 23:13:05 +0000 (23:13 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 18 Dec 2005 23:13:05 +0000 (23:13 +0000)
svn path=/trunk/; revision=20263

reactos/lib/msi/format.c

index 2730433..c280541 100644 (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