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("."); } }