format according to review

This commit is contained in:
mxve 2024-04-24 17:13:37 +02:00
parent 0801553556
commit a07253fff4

View File

@ -104,20 +104,20 @@ namespace Utils
void Library::LaunchProcess(const std::wstring& process, const std::wstring& commandLine, const std::filesystem::path& currentDir) void Library::LaunchProcess(const std::wstring& process, const std::wstring& commandLine, const std::filesystem::path& currentDir)
{ {
STARTUPINFOW startup_info; STARTUPINFOW startupInfo;
PROCESS_INFORMATION process_info; PROCESS_INFORMATION processInfo;
ZeroMemory(&startup_info, sizeof(startup_info)); ZeroMemory(&startupInfo, sizeof(startupInfo));
ZeroMemory(&process_info, sizeof(process_info)); ZeroMemory(&processInfo, sizeof(processInfo));
startup_info.cb = sizeof(startup_info); startupInfo.cb = sizeof(startupInfo);
CreateProcessW(process.data(), const_cast<wchar_t*>(commandLine.data()), nullptr, CreateProcessW(process.data(), const_cast<wchar_t*>(commandLine.data()), nullptr,
nullptr, false, NULL, nullptr, currentDir.wstring().data(), nullptr, false, NULL, nullptr, currentDir.wstring().data(),
&startup_info, &process_info); &startupInfo, &processInfo);
if (process_info.hThread && process_info.hThread != INVALID_HANDLE_VALUE) if (processInfo.hThread && processInfo.hThread != INVALID_HANDLE_VALUE)
CloseHandle(process_info.hThread); CloseHandle(processInfo.hThread);
if (process_info.hProcess && process_info.hProcess != INVALID_HANDLE_VALUE) if (processInfo.hProcess && processInfo.hProcess != INVALID_HANDLE_VALUE)
CloseHandle(process_info.hProcess); CloseHandle(processInfo.hProcess);
} }
} }