Commit 4e25188a authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Treat the SourceDir folder the same as TargetDir.

parent 7eb27026
......@@ -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)
{
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment