mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
mft: fix warning for GetProcAddress cast
This commit is contained in:
parent
626d25ae39
commit
ab7be29617
@ -1563,7 +1563,8 @@ static int LoadMFTLibrary(decoder_t *p_dec)
|
|||||||
HINSTANCE mfplat_dll = LoadLibrary(TEXT("mfplat.dll"));
|
HINSTANCE mfplat_dll = LoadLibrary(TEXT("mfplat.dll"));
|
||||||
if (mfplat_dll)
|
if (mfplat_dll)
|
||||||
{
|
{
|
||||||
p_sys->fptr_MFCreateDXGIDeviceManager = (pf_MFCreateDXGIDeviceManager)GetProcAddress(mfplat_dll, "MFCreateDXGIDeviceManager");
|
p_sys->fptr_MFCreateDXGIDeviceManager = reinterpret_cast<pf_MFCreateDXGIDeviceManager>(
|
||||||
|
GetProcAddress(mfplat_dll, "MFCreateDXGIDeviceManager") );
|
||||||
// we still have the DLL automatically loaded after this
|
// we still have the DLL automatically loaded after this
|
||||||
FreeLibrary(mfplat_dll);
|
FreeLibrary(mfplat_dll);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user