James Hawkins : msi: OriginalDatabase can be a URL so check for a forward slash too.
Alexandre Julliard
julliard at winehq.org
Mon Jan 7 08:39:10 CST 2008
Module: wine
Branch: master
Commit: 186487663a9305831a3125cbd724f1b1519242e0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=186487663a9305831a3125cbd724f1b1519242e0
Author: James Hawkins <truiken at gmail.com>
Date: Sat Jan 5 13:47:14 2008 -0700
msi: OriginalDatabase can be a URL so check for a forward slash too.
---
dlls/msi/action.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index a96d2b3..562178c 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -623,8 +623,12 @@ static UINT msi_set_sourcedir_props(MSIPACKAGE *package, BOOL replace)
p = strrchrW( db, '\\' );
if (!p)
{
- msi_free(db);
- return ERROR_SUCCESS;
+ p = strrchrW( db, '/' );
+ if (!p)
+ {
+ msi_free(db);
+ return ERROR_SUCCESS;
+ }
}
len = p - db + 2;
More information about the wine-cvs
mailing list