From: RĂ©mi Denis-Courmont Date: Tue, 18 Aug 2009 17:21:54 +0000 (+0300) Subject: Taglib: assume Windows NT for filesystem access X-Git-Tag: 1.1.0-ff~4271 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=28caaf85ca6eb13f9d38cc4863f86f0fea397440;p=vlc Taglib: assume Windows NT for filesystem access --- diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp index 56d7be7bc2..227ed04f75 100644 --- a/modules/meta_engine/taglib.cpp +++ b/modules/meta_engine/taglib.cpp @@ -329,16 +329,11 @@ static int ReadMeta( vlc_object_t* p_this) #if defined(WIN32) || defined (UNDER_CE) - if(GetVersion() < 0x80000000) - { - wchar_t wpath[MAX_PATH + 1]; - if( !MultiByteToWideChar( CP_UTF8, 0, p_demux->psz_path, -1, wpath, MAX_PATH) ) - return VLC_EGENERIC; - wpath[MAX_PATH] = L'\0'; - f = FileRef( wpath ); - } - else + wchar_t wpath[MAX_PATH + 1]; + if( !MultiByteToWideChar( CP_UTF8, 0, p_demux->psz_path, -1, wpath, MAX_PATH) ) return VLC_EGENERIC; + wpath[MAX_PATH] = L'\0'; + f = FileRef( wpath ); #else const char* local_name = ToLocale( p_demux->psz_path ); if( !local_name ) @@ -538,19 +533,11 @@ static int WriteMeta( vlc_object_t *p_this ) } #if defined(WIN32) || defined (UNDER_CE) - if(GetVersion() < 0x80000000) - { - wchar_t wpath[MAX_PATH + 1]; - if( !MultiByteToWideChar( CP_UTF8, 0, export_file , -1, wpath, MAX_PATH) ) - return VLC_EGENERIC; - wpath[MAX_PATH] = L'\0'; - f = FileRef( wpath ); - } - else - { - free( export_file ); + wchar_t wpath[MAX_PATH + 1]; + if( !MultiByteToWideChar( CP_UTF8, 0, export_file , -1, wpath, MAX_PATH) ) return VLC_EGENERIC; - } + wpath[MAX_PATH] = L'\0'; + f = FileRef( wpath ); #else const char* local_name = ToLocale( export_file ); if( !local_name )