diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 19:25:17 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 19:25:17 +0200 |
| commit | 97b796e7788ae69c0aaeec2644246d9f10d2739d (patch) | |
| tree | b6397ccbabde7ee3e470c6a9ae799c91d6e070e2 /src/file.cpp | |
| parent | upgrade winapi-utf8 (diff) | |
| download | winapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.tar.gz winapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.zip | |
finally, perfect .clang-format settings?
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 16 |
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"); |
