1
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:
Steve Lhomme 2022-02-08 07:44:07 +01:00 committed by Rémi Denis-Courmont
parent 626d25ae39
commit ab7be29617

View File

@ -1563,7 +1563,8 @@ static int LoadMFTLibrary(decoder_t *p_dec)
HINSTANCE mfplat_dll = LoadLibrary(TEXT("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
FreeLibrary(mfplat_dll);
}