Skip to content

Commit

Permalink
fix: HINSTANCE is not assigned to nullptr anymore since it's not offi…
Browse files Browse the repository at this point in the history
…cially a pointer (replaced by 0) (#40)
  • Loading branch information
martin-olivier authored Jun 3, 2022
1 parent e1ab7d0 commit 3d5ab97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/dylib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class dylib {
dylib& operator=(const dylib&) = delete;

dylib(dylib &&other) noexcept : m_handle(other.m_handle) {
other.m_handle = nullptr;
other.m_handle = 0;
}

dylib& operator=(dylib &&other) noexcept {
Expand Down Expand Up @@ -215,7 +215,7 @@ class dylib {
}

protected:
native_handle_type m_handle{nullptr};
native_handle_type m_handle{};
#if defined(_WIN32) || defined(_WIN64)
static native_handle_type _open(const char *path) noexcept {
return LoadLibraryA(path);
Expand Down

0 comments on commit 3d5ab97

Please sign in to comment.