aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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");