mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
fix: explicitly check construct function error in thread_safe.h (#5184)
This commit is contained in:
+1
-1
@@ -438,7 +438,7 @@ namespace safe {
|
||||
|
||||
if (!_count) {
|
||||
new (_object_buf.data()) element_type;
|
||||
if (_construct(*reinterpret_cast<element_type *>(_object_buf.data()))) {
|
||||
if (_construct(*reinterpret_cast<element_type *>(_object_buf.data())) != 0) {
|
||||
return ptr_t {nullptr};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user