msi: OriginalDatabase can be a URL so check for a forward slash too.

This commit is contained in:
James Hawkins 2008-01-05 13:47:14 -07:00 committed by Alexandre Julliard
parent 062070bfbe
commit 186487663a
1 changed files with 6 additions and 2 deletions

View File

@ -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;