summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-09-03 15:06:47 +0300
committerTor Lillqvist <tml@iki.fi>2013-09-03 15:33:49 +0300
commitf50f10ed74975da793cbabef1a96078989fe7bd9 (patch)
tree46369effae48a6a9a76085ca99b6d130952a423c /avmedia
parent9e9693b91acb747cf53f819099a78f7ed4de9f40 (diff)
Just use the wide char API and no TCHAR crack, puh-lease
Change-Id: I12dc2d9d1c76e43d27b6aaf2ded6444a6aa3d365
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/vlc/wrapper/SymbolLoader.hxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/avmedia/source/vlc/wrapper/SymbolLoader.hxx b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
index bf75ac57d0e8..cfc86533e647 100644
--- a/avmedia/source/vlc/wrapper/SymbolLoader.hxx
+++ b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
@@ -10,7 +10,6 @@
#ifndef _SYMBOL_LOADER_HXX
#define _SYMBOL_LOADER_HXX
#if defined( WNT )
-# include <tchar.h>
# include <windows.h>
# include <winreg.h>
#endif
@@ -40,16 +39,16 @@ namespace
OUString GetVLCPath()
{
HKEY hKey;
- TCHAR arCurrent[MAX_PATH];
+ wchar_t arCurrent[MAX_PATH];
DWORD dwType, dwCurrentSize = sizeof( arCurrent );
- if ( ::RegOpenKeyEx( HKEY_LOCAL_MACHINE, _T( "Software\\VideoLAN\\VLC" ),
+ if ( ::RegOpenKeyExW( HKEY_LOCAL_MACHINE, L"Software\\VideoLAN\\VLC",
0, KEY_READ, &hKey ) == ERROR_SUCCESS )
{
- if ( ::RegQueryValueEx( hKey, _T( "InstallDir" ), NULL, &dwType, ( LPBYTE )arCurrent, &dwCurrentSize ) == ERROR_SUCCESS )
+ if ( ::RegQueryValueExW( hKey, L"InstallDir", NULL, &dwType, (LPBYTE) arCurrent, &dwCurrentSize ) == ERROR_SUCCESS )
{
::RegCloseKey( hKey );
- return OUString( arCurrent, strlen(arCurrent), RTL_TEXTENCODING_UTF8 ) + "/";
+ return OUString( arCurrent, wcslen(arCurrent) ) + "/";
}
::RegCloseKey( hKey );
@@ -58,7 +57,6 @@ namespace
}
#endif
-
template<size_t N>
bool tryLink( oslModule &aModule, const ApiMap ( &pMap )[N] )
{