From 33b22c485d2fe2779e61058be73a28ede0a15d3b Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Mon, 17 Sep 2012 23:28:10 -0500 Subject: [PATCH] FS-4099 --resolve windows only regression --- src/mod/formats/mod_sndfile/mod_sndfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/formats/mod_sndfile/mod_sndfile.c b/src/mod/formats/mod_sndfile/mod_sndfile.c index fdb40e9a8a..05e306d7a2 100644 --- a/src/mod/formats/mod_sndfile/mod_sndfile.c +++ b/src/mod/formats/mod_sndfile/mod_sndfile.c @@ -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