Commit 29c0836f authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Handle searching for directories in the IniLocator part of the AppSearch action.

parent c48497d0
...@@ -539,7 +539,7 @@ static UINT ACTION_AppSearchIni(MSIPACKAGE *package, LPWSTR *appValue, ...@@ -539,7 +539,7 @@ static UINT ACTION_AppSearchIni(MSIPACKAGE *package, LPWSTR *appValue,
switch (type & 0x0f) switch (type & 0x0f)
{ {
case msidbLocatorTypeDirectory: case msidbLocatorTypeDirectory:
FIXME("unimplemented for Directory (%s)\n", debugstr_w(buf)); ACTION_SearchDirectory(package, sig, buf, 0, appValue);
break; break;
case msidbLocatorTypeFileName: case msidbLocatorTypeFileName:
*appValue = app_search_file(buf, sig); *appValue = app_search_file(buf, sig);
......
...@@ -6935,10 +6935,7 @@ static void test_appsearch_inilocator(void) ...@@ -6935,10 +6935,7 @@ static void test_appsearch_inilocator(void)
sprintf(path, "%s\\", CURR_DIR); sprintf(path, "%s\\", CURR_DIR);
r = MsiGetPropertyA(hpkg, "SIGPROP6", prop, &size); r = MsiGetPropertyA(hpkg, "SIGPROP6", prop, &size);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
todo_wine ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop);
{
ok(!lstrcmpA(prop, path), "Expected \"%s\", got \"%s\"\n", path, prop);
}
size = MAX_PATH; size = MAX_PATH;
sprintf(path, "%s\\", CURR_DIR); sprintf(path, "%s\\", CURR_DIR);
......
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