From 9defe79e42b7260259629666ef9114f4b6a33471 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Fri, 11 Aug 2006 03:40:36 +0000 Subject: [PATCH] make ssc-wma work with unicode file names (bad codepage in multibyte translation) --- src/plugins/ssc-wma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/ssc-wma.cpp b/src/plugins/ssc-wma.cpp index 9f730560..513c921a 100644 --- a/src/plugins/ssc-wma.cpp +++ b/src/plugins/ssc-wma.cpp @@ -162,7 +162,7 @@ int ssc_wma_open(void *vp, char *file, char *codec, int duration) { } /* convert file name to wchar */ - MultiByteToWideChar(GetACP(),0,file,-1,fname,sizeof(fname)/sizeof(fname[0])); + MultiByteToWideChar(CP_UTF8,0,file,-1,fname,sizeof(fname)/sizeof(fname[0])); hr = handle->pReader->Open(fname); if(FAILED(hr)) {