[vlc-commits] DxVA2: fix GetProcAddress usage under UNICODE

Jean-Baptiste Kempf git at videolan.org
Mon Jan 14 17:28:35 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 14 18:24:53 2013 +0100| [eb86cfe7de7acb16d437238cf572d7d63b1f474e] | committer: Jean-Baptiste Kempf

DxVA2: fix GetProcAddress usage under UNICODE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb86cfe7de7acb16d437238cf572d7d63b1f474e
---

 modules/codec/avcodec/dxva2.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index ddd1b58..16dccb5 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -572,7 +572,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;
@@ -679,7 +679,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");
@@ -723,7 +723,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");



More information about the vlc-commits mailing list