msi: Treat the SourceDir folder the same as TargetDir.

This commit is contained in:
Mike McCormack 2006-11-22 15:13:32 +09:00 committed by Alexandre Julliard
parent 7eb270265f
commit 4e25188a2a
2 changed files with 4 additions and 3 deletions

View file

@ -231,12 +231,15 @@ LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
if (!name)
return NULL;
if (!lstrcmpW(name,cszSourceDir))
name = cszTargetDir;
f = get_loaded_folder( package, name );
if (!f)
return NULL;
/* special resolving for Target and Source root dir */
if (strcmpW(name,cszTargetDir)==0 || strcmpW(name,cszSourceDir)==0)
if (!strcmpW(name,cszTargetDir))
{
if (!f->ResolvedTarget && !f->Property)
{

View file

@ -2939,10 +2939,8 @@ static void test_prop_path(void)
sz = sizeof buffer;
buffer[0] = 0;
r = MsiGetSourcePath(hpkg, "SourceDir", buffer, &sz );
todo_wine {
ok( r == ERROR_SUCCESS, "failed to get source path\n");
ok( !lstrcmpi(cwd, buffer), "SourceDir (%s) should be current dir (%s)\n", buffer, cwd);
}
sz = sizeof buffer;
buffer[0] = 0;