[PATCH 4/4] mfplat/tests: Add tests.
Nikolay Sivov
bunglehead at gmail.com
Fri Apr 28 00:48:58 CDT 2017
On 28.04.2017 7:29, Alistair Leslie-Hughes wrote:
> +BOOL init_function_ptrs(void)
> +{
> + HMODULE mfplat = LoadLibraryA("mfplat.dll");
> + if (!mfplat)
> + {
> + win_skip("Could not load mfplat.dll\n");
> + return FALSE;
> + }
> +
> + #define LOAD_FUNCPTR(f) p##f = (void*)GetProcAddress(mfplat, #f)
> + LOAD_FUNCPTR(MFTEnum);
> + LOAD_FUNCPTR(MFTRegister);
> + LOAD_FUNCPTR(MFTUnregister);
> + #undef LOAD_FUNCPTR
> +
> + return TRUE;
> +}
This looks redundant, why is it not statically linked?
More information about the wine-devel
mailing list