shlwapi/tests: Don't run tests on old shlwapi versions.

This commit is contained in:
Andrew Eikum 2010-10-07 14:59:51 -05:00 committed by Alexandre Julliard
parent 34f3f7cae3
commit 1a7c76c7b0
1 changed files with 9 additions and 0 deletions

View File

@ -1408,8 +1408,17 @@ static void test_HashData(void)
START_TEST(url)
{
char *pFunc;
hShlwapi = GetModuleHandleA("shlwapi.dll");
/* SHCreateStreamOnFileEx was introduced in shlwapi v6.0 */
pFunc = (void*)GetProcAddress(hShlwapi, "SHCreateStreamOnFileEx");
if(!pFunc){
win_skip("Too old shlwapi version\n");
return;
}
pUrlUnescapeA = (void *) GetProcAddress(hShlwapi, "UrlUnescapeA");
pUrlUnescapeW = (void *) GetProcAddress(hShlwapi, "UrlUnescapeW");
pUrlIsA = (void *) GetProcAddress(hShlwapi, "UrlIsA");