summaryrefslogtreecommitdiffstatshomepage
path: root/src/file.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/file.cpp
parentupgrade winapi-utf8 (diff)
downloadwinapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.tar.gz
winapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.zip
finally, perfect .clang-format settings?
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 7d1df8e..9c004c2 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -65,13 +65,15 @@ File open_file(std::wstring_view path, const CreateFileParams& params) {
attributes.nLength = sizeof(attributes);
attributes.bInheritHandle = TRUE;
- const auto handle = ::CreateFileW(path.data(),
- params.dwDesiredAccess,
- params.dwShareMode,
- &attributes,
- params.dwCreationDisposition,
- FILE_ATTRIBUTE_NORMAL,
- NULL);
+ const auto handle = ::CreateFileW(
+ path.data(),
+ params.dwDesiredAccess,
+ params.dwShareMode,
+ &attributes,
+ params.dwCreationDisposition,
+ FILE_ATTRIBUTE_NORMAL,
+ NULL
+ );
if (handle == INVALID_HANDLE_VALUE) {
throw error::windows(GetLastError(), "CreateFileW");