mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
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) {
|
bool Texture2D::lock_key(uint64_t key, uint32_t timeout_ms) {
|
||||||
if (keyed_mutex_) {
|
if (keyed_mutex_) {
|
||||||
const auto hr = keyed_mutex_->AcquireSync(key, timeout_ms);
|
const auto hr = keyed_mutex_->AcquireSync(key, timeout_ms);
|
||||||
return SUCCEEDED(hr);
|
return (hr == S_OK);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user