Magnus Olsen : msi: Fixed deformat_environment to not cut off string.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 19 14:22:09 CST 2005


Module: wine
Branch: refs/heads/master
Commit: a06aa5e9961016c4d7461e705afe00f324c1f5a4
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=a06aa5e9961016c4d7461e705afe00f324c1f5a4

Author: Magnus Olsen <magnus at itkonsult-olsen.com>
Date:   Mon Dec 19 18:17:28 2005 +0100

msi: Fixed deformat_environment to not cut off string.

---

 dlls/msi/format.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/format.c b/dlls/msi/format.c
index 2730433..c280541 100644
--- a/dlls/msi/format.c
+++ b/dlls/msi/format.c
@@ -151,7 +151,7 @@ static LPWSTR deformat_environment(MSIPA
     {
         sz++;
         value = msi_alloc(sz * sizeof(WCHAR));
-        GetEnvironmentVariableW(&key[1],value,sz);
+        GetEnvironmentVariableW(key,value,sz);
         *chunk = (strlenW(value)) * sizeof(WCHAR);
     }
     else




More information about the wine-cvs mailing list