Commit cdd0cd01 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf Committed by Jean-Paul Saman

DxVA2: fix GetProcAddress usage under UNICODE

(cherry picked from commit eb86cfe7de7acb16d437238cf572d7d63b1f474e)
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent e9e2c870
......@@ -582,7 +582,7 @@ static int D3dCreateDevice(vlc_va_dxva2_t *va)
/* */
LPDIRECT3D9 (WINAPI *Create9)(UINT SDKVersion);
Create9 = (void *)GetProcAddress(va->hd3d9_dll,
TEXT("Direct3DCreate9"));
"Direct3DCreate9");
if (!Create9) {
msg_Err(va->log, "Cannot locate reference to Direct3DCreate9 ABI in DLL");
return VLC_EGENERIC;
......@@ -688,7 +688,7 @@ static int D3dCreateDeviceManager(vlc_va_dxva2_t *va)
IDirect3DDeviceManager9 **);
CreateDeviceManager9 =
(void *)GetProcAddress(va->hdxva2_dll,
TEXT("DXVA2CreateDirect3DDeviceManager9"));
"DXVA2CreateDirect3DDeviceManager9");
if (!CreateDeviceManager9) {
msg_Err(va->log, "cannot load function");
......@@ -732,7 +732,7 @@ static int DxCreateVideoService(vlc_va_dxva2_t *va)
void **ppService);
CreateVideoService =
(void *)GetProcAddress(va->hdxva2_dll,
TEXT("DXVA2CreateVideoService"));
"DXVA2CreateVideoService");
if (!CreateVideoService) {
msg_Err(va->log, "cannot load function");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment