Skip to content

Commit

Permalink
detect self move
Browse files Browse the repository at this point in the history
  • Loading branch information
trcrsired committed Jan 22, 2025
1 parent d662d31 commit 536dcc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/fast_io_hosted/process/process/win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,10 @@ class win32_family_process : public win32_family_process_observer<family>
}
inline win32_family_process &operator=(win32_family_process &&__restrict b) noexcept
{
if (__builtin_addressof(b) == this)
{
return *this;
}
win32::details::close_win32_user_process_information_and_wait(this->hnt_user_process_info);
this->hnt_user_process_info = b.release();
return *this;
Expand Down

0 comments on commit 536dcc8

Please sign in to comment.