summaryrefslogtreecommitdiff
path: root/Source/Core/WinUpdater/Main.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-06-28 18:15:30 +0200
committerJosJuice <josjuice@gmail.com>2020-07-08 14:51:35 +0200
commit15d9fab0bbe5cae41116c7eb24dc1797f05957c1 (patch)
treef445a0d86ae0b8fc0a7e6cd6b106668946191ba1 /Source/Core/WinUpdater/Main.cpp
parentcd51552fe4f88f725459c27959aa7fbc63c9cedf (diff)
Common: Rename UTF16ToUTF8
This function does *not* always convert from UTF-16. It converts from UTF-16 on Windows and UTF-32 on other operating systems. Also renaming UTF8ToUTF16 for consistency, even though it technically doesn't have the same problem since it only was implemented on Windows.
Diffstat (limited to 'Source/Core/WinUpdater/Main.cpp')
-rw-r--r--Source/Core/WinUpdater/Main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/WinUpdater/Main.cpp b/Source/Core/WinUpdater/Main.cpp
index 2e1bd36ff8..6afb807941 100644
--- a/Source/Core/WinUpdater/Main.cpp
+++ b/Source/Core/WinUpdater/Main.cpp
@@ -28,7 +28,7 @@ std::vector<std::string> CommandLineToUtf8Argv(PCWSTR command_line)
std::vector<std::string> argv(nargs);
for (int i = 0; i < nargs; ++i)
{
- argv[i] = UTF16ToUTF8(tokenized[i]);
+ argv[i] = WStringToUTF8(tokenized[i]);
}
LocalFree(tokenized);