提交 33b22c48 authored 作者: Jeff Lenk's avatar Jeff Lenk

FS-4099 --resolve windows only regression

上级 6803346c
...@@ -67,7 +67,7 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha ...@@ -67,7 +67,7 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
int i; int i;
sf_count_t frames = 0; sf_count_t frames = 0;
#ifdef WIN32 #ifdef WIN32
char ps = '\\'; char ps = '/';
#else #else
char ps = '/'; char ps = '/';
#endif #endif
...@@ -169,8 +169,8 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha ...@@ -169,8 +169,8 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
if ((last = strrchr(alt_path, ps))) { if ((last = strrchr(alt_path, ps))) {
last++; last++;
#ifdef WIN32 #ifdef WIN32
if (strrchr(last, '/')) { if (strrchr(last, '\\')) {
last = strrchr(alt_path, '/'); /* do not swallow a forward slash if they are intermixed under windows */ last = strrchr(alt_path, '\\'); /* do not swallow a back slash if they are intermixed under windows */
last++; last++;
} }
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论