Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs 13882. Fixes for _UNICODE macro on Visual Studio #2510

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cpp/utils/StringMatching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ bool StringMatching::matchPattern(
const char* pattern,
const char* str)
{
if (PathMatchSpec(str, pattern))
if (PathMatchSpecA(str, pattern))
{
return true;
}
Expand All @@ -112,11 +112,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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/utils/SystemInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,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;
}
Expand Down