shell32/tests: Remove shlwapi dependency.

This commit is contained in:
Greg Geldorp 2011-01-26 11:52:42 +01:00 committed by Alexandre Julliard
parent 507ec2a415
commit e5cc92f35b
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
TESTDLL = shell32.dll
IMPORTS = shell32 ole32 oleaut32 shlwapi user32 advapi32
IMPORTS = shell32 ole32 oleaut32 user32 advapi32
C_SRCS = \
appbar.c \

View File

@ -118,7 +118,9 @@ static void test_namespace(void)
r = pSHGetFolderPathW(NULL, CSIDL_PROGRAM_FILES, NULL,
SHGFP_TYPE_CURRENT, path);
ok(r == S_OK, "SHGetFolderPath failed: %08x\n", r);
p = PathFindFileNameW(path);
p = path + lstrlenW(path);
while (path < p && *(p - 1) != '\\')
p--;
ok(!lstrcmpW(title, p), "expected %s, got %s\n",
wine_dbgstr_w(p), wine_dbgstr_w(title));
}