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
[ROCm/clr commit: 8f5b43ffd1]
This commit is contained in:
@@ -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;
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user