]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4099 --resolve windows only regression
authorJeff Lenk <jeff@jefflenk.com>
Tue, 18 Sep 2012 04:28:10 +0000 (23:28 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 18 Sep 2012 04:28:10 +0000 (23:28 -0500)
src/mod/formats/mod_sndfile/mod_sndfile.c

index fdb40e9a8abc334c8b3275ac63c3c8ff890e9d13..05e306d7a29adc42d76e18d5de94110b09bf5572 100644 (file)
@@ -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