Re: [PATCH 4/4] mfplat/tests: Add tests.
28 Apr
2017
28 Apr
'17
5:48 a.m.
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?
3151
Age (days ago)
3151
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov