提交 55ac6d22 authored 作者: Anthony Minessale's avatar Anthony Minessale

restore significant part of last patch

上级 bfae8926
......@@ -670,6 +670,9 @@ 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");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论