advpack [1/3]: Factor out loading the advpack API [RESEND]
Alexandre Julliard
julliard at winehq.org
Fri Feb 24 03:43:16 CST 2006
"James Hawkins" <truiken at gmail.com> writes:
> @@ -256,21 +268,9 @@ static void translateinfstring_test()
>
> START_TEST(advpack)
> {
> - HMODULE hdll;
> -
> - hdll = LoadLibraryA("advpack.dll");
> - if (!hdll)
> - return;
> -
> - pGetVersionFromFile = (void*)GetProcAddress(hdll, "GetVersionFromFile");
> - pDelNode = (void*)GetProcAddress(hdll, "DelNode");
> - pTranslateInfString = (void*)GetProcAddress(hdll, "TranslateInfString");
> - if (!pGetVersionFromFile || !pDelNode || !pTranslateInfString)
> - return;
> + init_function_pointers();
Why are you removing the pointer checks?
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list