Skip to content

Commit e1656a7

Browse files
MiguelBarromergify-bot
authored and
mergify-bot
committed
Fixes for _UNICODE macro on Visual Studio (#2510)
Signed-off-by: Miguel Barro <[email protected]> (cherry picked from commit 49e7986)
1 parent 5c922d1 commit e1656a7

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
@@ -99,7 +99,7 @@ bool StringMatching::matchPattern(
9999
const char* pattern,
100100
const char* str)
101101
{
102-
if (PathMatchSpec(str, pattern))
102+
if (PathMatchSpecA(str, pattern))
103103
{
104104
return true;
105105
}
@@ -110,11 +110,11 @@ bool StringMatching::matchString(
110110
const char* str1,
111111
const char* str2)
112112
{
113-
if (PathMatchSpec(str1, str2))
113+
if (PathMatchSpecA(str1, str2))
114114
{
115115
return true;
116116
}
117-
if (PathMatchSpec(str2, str1))
117+
if (PathMatchSpecA(str2, str1))
118118
{
119119
return true;
120120
}

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)