make ssc-wma work with unicode file names (bad codepage in multibyte translation)

This commit is contained in:
Ron Pedde 2006-08-11 03:40:36 +00:00
parent 7554aabf90
commit 9defe79e42

View File

@ -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)) {