[Libreoffice-commits] core.git: avmedia/source

Minh Ngo nlminhtl at gmail.com
Mon Sep 2 03:35:39 PDT 2013


 avmedia/source/vlc/wrapper/SymbolLoader.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4e35c379aa63b197110193ce134dd3b26cff0644
Author: Minh Ngo <nlminhtl at gmail.com>
Date:   Mon Sep 2 13:33:58 2013 +0300

    Possible fixes encoding in the VLC library path.
    
    If it's in the UTF-8 encoding.
    
    Change-Id: I938341e0ae5851b1c5301cd11042f4056bbe8e05

diff --git a/avmedia/source/vlc/wrapper/SymbolLoader.hxx b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
index 1835e43..ae4cf66 100644
--- a/avmedia/source/vlc/wrapper/SymbolLoader.hxx
+++ b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
@@ -48,7 +48,7 @@ namespace
             if ( ::RegQueryValueEx( hKey, _T( "InstallDir" ), NULL, &dwType, ( LPBYTE )arCurrent, &dwCurrentSize ) == ERROR_SUCCESS )
             {
                 ::RegCloseKey( hKey );
-                return OUString::createFromAscii( arCurrent ) + "/";
+                return OUString( arCurrent, MAX_PATH, rtl_TextEncoding, RTL_TEXTENCODING_UTF8 ) + "/";
             }
 
             ::RegCloseKey( hKey );


More information about the Libreoffice-commits mailing list