Browse Source

Fix Access Violation due to __wargv.

Darryl Pogue 10 years ago committed by Darryl Pogue
parent
commit
d04dc64bd9
  1. 2
      Sources/Plasma/Apps/plClient/winmain.cpp
  2. 2
      Sources/Plasma/Apps/plUruLauncher/plClientLauncher.cpp

2
Sources/Plasma/Apps/plClient/winmain.cpp

@ -1136,7 +1136,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
std::vector<plString> args;
args.reserve(__argc);
for (size_t i = 0; i < __argc; i++) {
args.push_back(plString::FromWchar(__wargv[i]));
args.push_back(plString::FromUtf8(__argv[i]));
}
plCmdParser cmdParser(s_cmdLineArgs, arrsize(s_cmdLineArgs));

2
Sources/Plasma/Apps/plUruLauncher/plClientLauncher.cpp

@ -445,7 +445,7 @@ void plClientLauncher::ParseArguments()
std::vector<plString> args;
args.reserve(__argc);
for (size_t i = 0; i < __argc; i++) {
args.push_back(plString::FromWchar(__wargv[i]));
args.push_back(plString::FromUtf8(__argv[i]));
}
plCmdParser cmdParser(cmdLineArgs, arrsize(cmdLineArgs));

Loading…
Cancel
Save