Module: wine Branch: master Commit: 1a7c76c7b0995f860182d4389034c04282c7d575 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a7c76c7b0995f860182d43890... Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Thu Oct 7 14:59:51 2010 -0500 shlwapi/tests: Don't run tests on old shlwapi versions. --- dlls/shlwapi/tests/url.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dlls/shlwapi/tests/url.c b/dlls/shlwapi/tests/url.c index d1da88b..cf74177 100644 --- a/dlls/shlwapi/tests/url.c +++ b/dlls/shlwapi/tests/url.c @@ -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");