FS-4099 --resolve windows only regression
This commit is contained in:
parent
6803346c94
commit
33b22c485d
|
@ -67,7 +67,7 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
|
|||
int i;
|
||||
sf_count_t frames = 0;
|
||||
#ifdef WIN32
|
||||
char ps = '\\';
|
||||
char ps = '/';
|
||||
#else
|
||||
char ps = '/';
|
||||
#endif
|
||||
|
@ -169,8 +169,8 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
|
|||
if ((last = strrchr(alt_path, ps))) {
|
||||
last++;
|
||||
#ifdef WIN32
|
||||
if (strrchr(last, '/')) {
|
||||
last = strrchr(alt_path, '/'); /* do not swallow a forward slash if they are intermixed under windows */
|
||||
if (strrchr(last, '\\')) {
|
||||
last = strrchr(alt_path, '\\'); /* do not swallow a back slash if they are intermixed under windows */
|
||||
last++;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue