Windows: cefclient: Fix return value check for AcquireSync (fixes issue #2933)
This commit is contained in:
parent
14571658a2
commit
c82eb3e80f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue