summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/StringUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
-rw-r--r--Source/Core/Common/Src/StringUtil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp
index 9ceaa13100..3b96943c40 100644
--- a/Source/Core/Common/Src/StringUtil.cpp
+++ b/Source/Core/Common/Src/StringUtil.cpp
@@ -157,7 +157,7 @@ std::wstring StringFromFormat(const wchar_t* format, ...)
buf = new wchar_t[newSize + 1];
va_start(args, format);
- writtenCount = _vsnwprintf(buf, newSize, format, args);
+ writtenCount = vswprintf(buf, newSize, format, args);
va_end(args);
if (writtenCount >= (int)newSize) {
writtenCount = -1;
@@ -302,12 +302,12 @@ bool TryParseInt(const char* str, int* outVal)
bool TryParseBool(const char* str, bool* output)
{
- if ((str[0] == '1') || !stricmp(str, "true"))
+ if ((str[0] == '1') || !strcasecmp(str, "true"))
{
*output = true;
return true;
}
- else if (str[0] == '0' || !stricmp(str, "false"))
+ else if (str[0] == '0' || !strcasecmp(str, "false"))
{
*output = false;
return true;