Skip to content

Commit

Permalink
try to convert to native string
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed Feb 17, 2025
1 parent 7caa009 commit b4110b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions external/untwine/api/QgisUntwine_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <algorithm>

#include "QgisUntwine.hpp"
#include "../untwine/windows/stringconv.hpp" // untwine/os

namespace untwine
{
Expand Down Expand Up @@ -40,9 +41,8 @@ bool QgisUntwine::start(Options& options)
startupInfo.dwFlags = STARTF_USESTDHANDLES;
**/

std::vector<char> ncCmdline(cmdline.begin(), cmdline.end());
ncCmdline.push_back((char)0);
bool ok = CreateProcess(m_path.c_str(), ncCmdline.data(),
auto ncCmdline = os::toNative(cmdline);
bool ok = CreateProcess(os::toNative(m_path).c_str(), ncCmdline.data(),
NULL, /* process attributes */
NULL, /* thread attributes */
TRUE, /* inherit handles */
Expand Down

0 comments on commit b4110b3

Please sign in to comment.