mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-19 20:18:21 +00:00
msi: Treat the SourceDir folder the same as TargetDir.
This commit is contained in:
parent
7eb270265f
commit
4e25188a2a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue