Skip to content

Commit

Permalink
Format win32/safe_handle.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ispeters committed Oct 31, 2023
1 parent a6537dd commit 5bea88a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/win32/safe_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
namespace unifex::win32 {

void safe_handle::reset() noexcept {
handle_t h = std::exchange(handle_, nullptr);
if (h != nullptr && h != INVALID_HANDLE_VALUE) {
::CloseHandle(h);
}
handle_t h = std::exchange(handle_, nullptr);
if (h != nullptr && h != INVALID_HANDLE_VALUE) {
::CloseHandle(h);
}
}

} // namespace unifex::win32
} // namespace unifex::win32

0 comments on commit 5bea88a

Please sign in to comment.