[vlc-commits] winvlc: use WCHAR instead of TCHAR

Steve Lhomme git at videolan.org
Wed Apr 3 09:55:54 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr  3 08:44:31 2019 +0200| [cd61b872fc847e9122f4c59a59c6f16fe4674259] | committer: Steve Lhomme

winvlc: use WCHAR instead of TCHAR

We were already using FromWide on this variable. It cannot work if TCHAR is
not wide.

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

 bin/winvlc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/winvlc.c b/bin/winvlc.c
index 5634ce7957..d2766d0321 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -227,7 +227,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
         if( RegOpenKeyEx( HKEY_CURRENT_USER, TEXT("Software\\VideoLAN\\VLC\\"), 0, KEY_READ, &h_key )
                 == ERROR_SUCCESS )
         {
-            TCHAR szData[256];
+            WCHAR szData[256];
             DWORD len = 256;
             if( RegQueryValueEx( h_key, TEXT("Lang"), NULL, NULL, (LPBYTE) &szData, &len ) == ERROR_SUCCESS )
                 lang = FromWide( szData );



More information about the vlc-commits mailing list