Skip to content

Commit

Permalink
Fix the CAS in the XDND check
Browse files Browse the repository at this point in the history
Oops. We were doing the opposite of what we wanted, which caused the
first drag to always fail.
  • Loading branch information
robbert-vdh committed Jul 12, 2021
1 parent ad4fb1a commit 96fb53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wine-host/xdnd-proxy.cpp
Expand Up @@ -192,7 +192,7 @@ void WineXdndProxy::begin_xdnd(const boost::container::small_vector_base<

// NOTE: Needed for a quirk in MT-PowerDrumkit
bool expected = false;
if (drag_active.compare_exchange_strong(expected, true)) {
if (!drag_active.compare_exchange_strong(expected, true)) {
throw std::runtime_error("A drag-and-drop operation is already active");
}

Expand Down

0 comments on commit 96fb53b

Please sign in to comment.