Skip to content

Commit 49e7986

Browse files
authored
Fixes for _UNICODE macro on Visual Studio (#2510)
Signed-off-by: Miguel Barro <[email protected]>
1 parent 8be39c2 commit 49e7986

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cpp/utils/StringMatching.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ bool StringMatching::matchPattern(
101101
const char* pattern,
102102
const char* str)
103103
{
104-
if (PathMatchSpec(str, pattern))
104+
if (PathMatchSpecA(str, pattern))
105105
{
106106
return true;
107107
}
@@ -112,11 +112,11 @@ bool StringMatching::matchString(
112112
const char* str1,
113113
const char* str2)
114114
{
115-
if (PathMatchSpec(str1, str2))
115+
if (PathMatchSpecA(str1, str2))
116116
{
117117
return true;
118118
}
119-
if (PathMatchSpec(str2, str1))
119+
if (PathMatchSpecA(str2, str1))
120120
{
121121
return true;
122122
}

src/cpp/utils/SystemInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ ReturnCode_t SystemInfo::get_username(
104104
#define INFO_BUFFER_SIZE 32767
105105
char user[INFO_BUFFER_SIZE];
106106
DWORD bufCharCount = INFO_BUFFER_SIZE;
107-
if (!GetUserName(user, &bufCharCount))
107+
if (!GetUserNameA(user, &bufCharCount))
108108
{
109109
return ReturnCode_t::RETCODE_ERROR;
110110
}

0 commit comments

Comments
 (0)