James Hawkins : msi: If the package is a URL, the OriginalDatabase property should be the URL and the DATABASE property should be the path to the local temporary package .
Alexandre Julliard
julliard at winehq.org
Mon Jan 7 08:39:08 CST 2008
Module: wine
Branch: master
Commit: 4121c9bbc66cb8ae76e46a763c3ab900d7da3f0f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4121c9bbc66cb8ae76e46a763c3ab900d7da3f0f
Author: James Hawkins <truiken at gmail.com>
Date: Sat Jan 5 13:44:30 2008 -0700
msi: If the package is a URL, the OriginalDatabase property should be the URL and the DATABASE property should be the path to the local temporary package.
---
dlls/msi/package.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index a448214..d4d0262 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -932,7 +932,12 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
if( file != szPackage )
track_tempfile( package, file );
- if( szPackage[0] != '#' )
+ if( UrlIsW( szPackage, URLIS_URL ) )
+ {
+ MSI_SetPropertyW( package, OriginalDatabase, szPackage );
+ MSI_SetPropertyW( package, Database, db->path );
+ }
+ else if( szPackage[0] != '#' )
{
MSI_SetPropertyW( package, OriginalDatabase, szPackage );
MSI_SetPropertyW( package, Database, szPackage );
More information about the wine-cvs
mailing list