Skip to content

Commit c1de533

Browse files
MiguelBarroMiguel Barro
authored and
Miguel Barro
committed
Fixes for _UNICODE macro on Visual Studio (#2510)
Signed-off-by: Miguel Barro <[email protected]>
1 parent 8834128 commit c1de533

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
@@ -53,7 +53,7 @@ ReturnCode_t SystemInfo::get_username(
5353
#define INFO_BUFFER_SIZE 32767
5454
char user[INFO_BUFFER_SIZE];
5555
DWORD bufCharCount = INFO_BUFFER_SIZE;
56-
if (!GetUserName(user, &bufCharCount))
56+
if (!GetUserNameA(user, &bufCharCount))
5757
{
5858
return ReturnCode_t::RETCODE_ERROR;
5959
}

0 commit comments

Comments
 (0)