Windows: cefclient: Fix return value check for AcquireSync (fixes issue #2933)

This commit is contained in:
Marshall Greenblatt 2020-05-12 15:41:20 -04:00
parent 14571658a2
commit c82eb3e80f
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ bool Texture2D::has_mutex() const {
bool Texture2D::lock_key(uint64_t key, uint32_t timeout_ms) {
if (keyed_mutex_) {
const auto hr = keyed_mutex_->AcquireSync(key, timeout_ms);
return SUCCEEDED(hr);
return (hr == S_OK);
}
return true;
}