[td-4748]<fix>:fix the temp file generate buf on windows platform.
This commit is contained in:
parent
3a740a58bb
commit
6cd5224d69
|
@ -48,9 +48,10 @@ void osInit() {
|
||||||
strcpy(tsOsName, "Windows");
|
strcpy(tsOsName, "Windows");
|
||||||
|
|
||||||
const char *tmpDir = getenv("tmp");
|
const char *tmpDir = getenv("tmp");
|
||||||
if (tmpDir != NULL) {
|
if (tmpDir == NULL) {
|
||||||
tmpDir = getenv("temp");
|
tmpDir = getenv("temp");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tmpDir != NULL) {
|
if (tmpDir != NULL) {
|
||||||
strcpy(tsTempDir, tmpDir);
|
strcpy(tsTempDir, tmpDir);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue