summaryrefslogtreecommitdiffstatshomepage
path: root/src/process.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 19:25:17 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 19:25:17 +0200
commit97b796e7788ae69c0aaeec2644246d9f10d2739d (patch)
treeb6397ccbabde7ee3e470c6a9ae799c91d6e070e2 /src/process.cpp
parentupgrade winapi-utf8 (diff)
downloadwinapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.tar.gz
winapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.zip
finally, perfect .clang-format settings?
Diffstat (limited to '')
-rw-r--r--src/process.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/process.cpp b/src/process.cpp
index e323135..b251003 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -92,16 +92,18 @@ Handle create_process(ProcessParameters& params) {
{
auto cmd_line = escape_command_line(params.cmd_line);
- const auto ret = ::CreateProcessW(NULL,
- cmd_line.data(),
- NULL,
- NULL,
- TRUE,
- dwCreationFlags,
- NULL,
- NULL,
- &startup_info,
- &child_info);
+ const auto ret = ::CreateProcessW(
+ NULL,
+ cmd_line.data(),
+ NULL,
+ NULL,
+ TRUE,
+ dwCreationFlags,
+ NULL,
+ NULL,
+ &startup_info,
+ &child_info
+ );
if (!ret) {
throw error::windows(GetLastError(), "CreateProcessW");
@@ -392,7 +394,8 @@ Resource Process::get_resource(uint32_t id) {
if (data == NULL)
throw std::runtime_error{
- std::format("Couldn't get data pointer for resource with ID {}", id)};
+ std::format("Couldn't get data pointer for resource with ID {}", id)
+ };
const auto nb = ::SizeofResource(module, src);