[vlc-commits] qt: use WCHAR instead of TCHAR
Steve Lhomme
git at videolan.org
Wed Apr 3 09:55:58 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr 3 09:06:37 2019 +0200| [bb03693ca9dca62cbc0fb77310a05d3ac9a237cf] | committer: Steve Lhomme
qt: 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=bb03693ca9dca62cbc0fb77310a05d3ac9a237cf
---
modules/gui/qt/components/simple_preferences.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt/components/simple_preferences.cpp b/modules/gui/qt/components/simple_preferences.cpp
index d79fdf09f8..914b92f07d 100644
--- a/modules/gui/qt/components/simple_preferences.cpp
+++ b/modules/gui/qt/components/simple_preferences.cpp
@@ -709,7 +709,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
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 ) {
langReg = FromWide( szData );
More information about the vlc-commits
mailing list