shlwapi/tests: Don't run tests on old shlwapi versions.
This commit is contained in:
parent
34f3f7cae3
commit
1a7c76c7b0
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue