[vlc-commits] direct3d9: use WCHAR instead of TCHAR
Steve Lhomme
git at videolan.org
Tue Apr 2 16:33:05 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Apr 2 13:07:42 2019 +0200| [e036271b43ceac452b881859f12f393f07ea7b75] | committer: Steve Lhomme
direct3d9: use WCHAR instead of TCHAR
Using TEXT() already meant it could only work with WCHAR and we always define
UNICODE anyway.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e036271b43ceac452b881859f12f393f07ea7b75
---
modules/video_output/win32/direct3d9.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 77590d8476..8713dc75fa 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -213,8 +213,8 @@ static HINSTANCE Direct3D9LoadShaderLibrary(void)
{
HINSTANCE instance = NULL;
for (int i = 43; i > 23; --i) {
- TCHAR filename[16];
- _sntprintf(filename, 16, TEXT("D3dx9_%d.dll"), i);
+ WCHAR filename[16];
+ _snwprintf(filename, ARRAYSIZE(filename), TEXT("D3dx9_%d.dll"), i);
instance = LoadLibrary(filename);
if (instance)
break;
More information about the vlc-commits
mailing list