Commit 1a7c76c7 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

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

parent 34f3f7ca
......@@ -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");
......
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