summaryrefslogtreecommitdiff
path: root/Source/Core/WinUpdater
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-10-20 01:45:28 +0200
committerGitHub <noreply@github.com>2020-10-20 01:45:28 +0200
commit98875346bddbd09e0bccd98fdb2ca22df71bf86d (patch)
tree7295496697bbd377ddcd4cce0995c3b8a23dcebf /Source/Core/WinUpdater
parent680ff4d168663c1f9188560ee02b8afcccc5196b (diff)
parent17e02838b0c885992c7148c2cd017c326b5b6d99 (diff)
Merge pull request #9104 from JosJuice/cmd-unicode
DolphinQt: Handle non-ASCII characters in Windows cmd arguments
Diffstat (limited to 'Source/Core/WinUpdater')
-rw-r--r--Source/Core/WinUpdater/Main.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/Core/WinUpdater/Main.cpp b/Source/Core/WinUpdater/Main.cpp
index 6afb807941..567486f00a 100644
--- a/Source/Core/WinUpdater/Main.cpp
+++ b/Source/Core/WinUpdater/Main.cpp
@@ -16,26 +16,6 @@
#include "UpdaterCommon/UI.h"
#include "UpdaterCommon/UpdaterCommon.h"
-namespace
-{
-std::vector<std::string> CommandLineToUtf8Argv(PCWSTR command_line)
-{
- int nargs;
- LPWSTR* tokenized = CommandLineToArgvW(command_line, &nargs);
- if (!tokenized)
- return {};
-
- std::vector<std::string> argv(nargs);
- for (int i = 0; i < nargs; ++i)
- {
- argv[i] = WStringToUTF8(tokenized[i]);
- }
-
- LocalFree(tokenized);
- return argv;
-}
-}; // namespace
-
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
{
if (lstrlenW(pCmdLine) == 0)