mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 07:53:23 -05:00
make ssc-wma work with unicode file names (bad codepage in multibyte translation)
This commit is contained in:
parent
7554aabf90
commit
9defe79e42
@ -162,7 +162,7 @@ int ssc_wma_open(void *vp, char *file, char *codec, int duration) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* convert file name to wchar */
|
/* 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);
|
hr = handle->pReader->Open(fname);
|
||||||
if(FAILED(hr)) {
|
if(FAILED(hr)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user