Include the trailing backslash on the Windows volume.
authorAric Stewart <aric@codeweavers.com>
Wed, 22 Dec 2004 18:17:15 +0000 (18:17 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 22 Dec 2004 18:17:15 +0000 (18:17 +0000)
dlls/msi/package.c

index 6a3fa9ff0ef15e596b6cac1cda6cb9174c82f0a6..0ea4b66acf5b24e0f1888ad4eb8422ce3df478eb 100644 (file)
@@ -338,7 +338,7 @@ Privileged
     SHGetFolderPathW(NULL,CSIDL_WINDOWS,NULL,0,pth);
     ptr = strchrW(pth,'\\');
     if (ptr)
-       *ptr = 0;
+       *(ptr+1) = 0;
     MSI_SetPropertyW(package, WV, pth);
     
     GetTempPathW(MAX_PATH,pth);
@@ -778,7 +778,7 @@ UINT MSI_GetPropertyW(MSIPACKAGE *package, LPCWSTR szName,
         TRACE("returning %s for property %s\n", debugstr_w(szValueBuf),
             debugstr_w(szName));
     else if (rc == ERROR_MORE_DATA)
-        TRACE("need %i sized buffer for %s\n", *pchValueBuf,
+        TRACE("need %li sized buffer for %s\n", *pchValueBuf,
             debugstr_w(szName));
     else
     {