diff --git a/src/cpp/utils/StringMatching.cpp b/src/cpp/utils/StringMatching.cpp index 2741d9c5c21..678432787e2 100644 --- a/src/cpp/utils/StringMatching.cpp +++ b/src/cpp/utils/StringMatching.cpp @@ -99,7 +99,7 @@ bool StringMatching::matchPattern( const char* pattern, const char* str) { - if (PathMatchSpec(str, pattern)) + if (PathMatchSpecA(str, pattern)) { return true; } @@ -110,11 +110,11 @@ bool StringMatching::matchString( const char* str1, const char* str2) { - if (PathMatchSpec(str1, str2)) + if (PathMatchSpecA(str1, str2)) { return true; } - if (PathMatchSpec(str2, str1)) + if (PathMatchSpecA(str2, str1)) { return true; } diff --git a/src/cpp/utils/SystemInfo.cpp b/src/cpp/utils/SystemInfo.cpp index b9efa3ce2b9..036dbb9698a 100644 --- a/src/cpp/utils/SystemInfo.cpp +++ b/src/cpp/utils/SystemInfo.cpp @@ -53,7 +53,7 @@ ReturnCode_t SystemInfo::get_username( #define INFO_BUFFER_SIZE 32767 char user[INFO_BUFFER_SIZE]; DWORD bufCharCount = INFO_BUFFER_SIZE; - if (!GetUserName(user, &bufCharCount)) + if (!GetUserNameA(user, &bufCharCount)) { return ReturnCode_t::RETCODE_ERROR; }