Revert "msi: Add the drive letter to the relative target paths (eterbug #3902)"
authorVitaly Perov <vitperov@etersoft.ru>
Wed, 13 Apr 2011 10:22:21 +0000 (14:22 +0400)
committerVitaly Perov <vitperov@etersoft.ru>
Wed, 13 Apr 2011 10:22:21 +0000 (14:22 +0400)
This reverts commit 26f70cd2948b2bbddd16f6630ef46352fa9d3c4a.

dlls/msi/helpers.c

index d6734782040897e2dfbbcbff4d1d535523f8b1ac..397c8ef85f34e1552ea34e88cf680ae0d6711a2d 100644 (file)
@@ -37,9 +37,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi);
 static const WCHAR cszTargetDir[] = {'T','A','R','G','E','T','D','I','R',0};
 static const WCHAR cszDatabase[]={'D','A','T','A','B','A','S','E',0};
 
-extern LPWSTR WINAPI PathBuildRootW( LPWSTR, int );
-extern BOOL WINAPI PathIsRelativeW( LPCWSTR );
-
 LPWSTR build_icon_path(MSIPACKAGE *package, LPCWSTR icon_name )
 {
     LPWSTR SystemFolder, dest, FilePath;
@@ -351,15 +348,6 @@ LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
         path = build_directory_name( 3, p, f->TargetDefault, NULL );
         clean_spaces_from_path( path );
         f->ResolvedTarget = strdupW( path );
-
-        if (path && PathIsRelativeW( path ))
-        {
-            WCHAR tmp[MAX_PATH];
-
-            PathBuildRootW( tmp, 2 );
-            lstrcatW( tmp, path );
-            lstrcpyW( path, tmp );
-        }
         TRACE("target -> %s\n", debugstr_w(path));
         if (set_prop)
             msi_set_property( package->db, name, path );