From 794dc568be22c56dbd1ebfe0cd6a5a724c67827e Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 3 Oct 2014 20:19:00 -0400
Subject: [PATCH] P4 to Git Change 1084288 by xcui@merged_opencl_jxcwin on
2014/10/03 20:10:38
EPR #397491 - fixed the temporary directory under windows system directory issue for windows, because apps couldn't write into C:\windows directory.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/os/os_win32.cpp#41 edit
---
rocclr/runtime/os/os_win32.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/os/os_win32.cpp b/rocclr/runtime/os/os_win32.cpp
index afde674399..1de814b559 100644
--- a/rocclr/runtime/os/os_win32.cpp
+++ b/rocclr/runtime/os/os_win32.cpp
@@ -720,7 +720,7 @@ Os::getTempPath()
char winPath[MAX_PATH];
ret = GetWindowsDirectory(winPath, MAX_PATH);
if (ret > 0) {
- if (_stricmp(tempPath, winPath) == 0) {
+ if (_memicmp(tempPath, winPath, ret) == 0) {
return std::string(".");
}
}