P4 to Git Change 1074473 by rili@rili_opencl_stg on 2014/09/08 16:30:03

EPR #400016 - Keep the path of temp folder if the app is WIndows app

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/os/os_win32.cpp#39 edit
This commit is contained in:
foreman
2014-09-08 16:44:37 -04:00
parent c777c3e198
commit 8f5b43ffd1
+2 -6
View File
@@ -720,12 +720,8 @@ Os::getTempPath()
char winPath[MAX_PATH];
ret = GetWindowsDirectory(winPath, MAX_PATH);
if (ret > 0) {
size_t len = strlen(winPath);
if (strlen(tempPath) >= len) {
tempPath[len] = 0;
if (_stricmp(tempPath, winPath) == 0) {
return std::string(".");
}
if (_stricmp(tempPath, winPath) == 0) {
return std::string(".");
}
}
return tempPathStr;