From 7caa009d4e576c0d439b16a6cf6bdb973aadbf65 Mon Sep 17 00:00:00 2001 From: uclaros Date: Sun, 16 Feb 2025 23:53:23 +0200 Subject: [PATCH] don't use ansi variants --- external/untwine/api/QgisUntwine_win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/untwine/api/QgisUntwine_win.cpp b/external/untwine/api/QgisUntwine_win.cpp index 79ab868b09a3..c8b07e03d1f0 100644 --- a/external/untwine/api/QgisUntwine_win.cpp +++ b/external/untwine/api/QgisUntwine_win.cpp @@ -28,7 +28,7 @@ bool QgisUntwine::start(Options& options) cmdline += "--" + op.first + " \"" + op.second + "\" "; PROCESS_INFORMATION processInfo; - STARTUPINFOA startupInfo; + STARTUPINFO startupInfo; ZeroMemory(&processInfo, sizeof(PROCESS_INFORMATION)); ZeroMemory(&startupInfo, sizeof(STARTUPINFO)); @@ -42,7 +42,7 @@ bool QgisUntwine::start(Options& options) std::vector ncCmdline(cmdline.begin(), cmdline.end()); ncCmdline.push_back((char)0); - bool ok = CreateProcessA(m_path.c_str(), ncCmdline.data(), + bool ok = CreateProcess(m_path.c_str(), ncCmdline.data(), NULL, /* process attributes */ NULL, /* thread attributes */ TRUE, /* inherit handles */