diff options
Diffstat (limited to 'tests/src/Common/Platform/platformdefines.cpp')
-rw-r--r-- | tests/src/Common/Platform/platformdefines.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/Common/Platform/platformdefines.cpp b/tests/src/Common/Platform/platformdefines.cpp index 4caead59ea..82061ac90d 100644 --- a/tests/src/Common/Platform/platformdefines.cpp +++ b/tests/src/Common/Platform/platformdefines.cpp @@ -89,7 +89,7 @@ int TP_slen(LPWSTR str) return len; } -int TP_scmp_s(LPSTR str1, LPSTR str2) +int TP_scmp_s(LPCSTR str1, LPCSTR str2) { // < 0 str1 less than str2 // 0 str1 identical to str2 @@ -277,7 +277,7 @@ DWORD TP_GetFullPathName(LPWSTR fileName, DWORD nBufferLength, LPWSTR lpBuffer) return GetFullPathNameW(fileName, nBufferLength, lpBuffer, NULL); #else char nativeFullPath[MAX_PATH]; - realpath(HackyConvertToSTR(fileName), nativeFullPath); + (void)realpath(HackyConvertToSTR(fileName), nativeFullPath); LPWSTR fullPathForCLR = HackyConvertToWSTR(nativeFullPath); wcscpy_s(lpBuffer, MAX_PATH, fullPathForCLR); return wcslen(lpBuffer); |