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?