From 6bcb543bce7e471413ab87237922a06ecc08e1ce Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 8 Sep 2014 16:44:37 -0400 Subject: [PATCH] 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: 8f5b43ffd1dd4ff18d16653f4c1e40425f6b1c48] --- projects/clr/rocclr/runtime/os/os_win32.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/projects/clr/rocclr/runtime/os/os_win32.cpp b/projects/clr/rocclr/runtime/os/os_win32.cpp index 7e834195f3..ceb148e73c 100644 --- a/projects/clr/rocclr/runtime/os/os_win32.cpp +++ b/projects/clr/rocclr/runtime/os/os_win32.cpp @@ -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;