This commit is contained in:
Anthony Minessale 2012-11-20 10:13:05 -06:00
parent 3ea579ccc3
commit bfae89267e
1 changed files with 2831 additions and 2834 deletions

View File

@ -670,9 +670,6 @@ SWITCH_DECLARE(void) switch_core_set_globals(void)
#ifdef WIN32
GetTempPath(dwBufSize, lpPathBuffer);
lpPathBuffer[strlen(lpPathBuffer)-1] = 0;
tmp = switch_string_replace(lpPathBuffer, "\\", "/");
strcpy(lpPathBuffer, tmp);
free(tmp);
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", lpPathBuffer);
#else
switch_snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", "/tmp");