mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 02:42:09 +00:00
kern: panic on failure-to-open auto object in debug config
This commit is contained in:
parent
008bfc27f3
commit
f866f37cdc
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ namespace ams::kern {
|
||||||
u32 cur_ref_count = this->ref_count.load(std::memory_order_acquire);
|
u32 cur_ref_count = this->ref_count.load(std::memory_order_acquire);
|
||||||
do {
|
do {
|
||||||
if (AMS_UNLIKELY(cur_ref_count == 0)) {
|
if (AMS_UNLIKELY(cur_ref_count == 0)) {
|
||||||
|
MESOSPHERE_AUDIT(cur_ref_count != 0);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
MESOSPHERE_ABORT_UNLESS(cur_ref_count < cur_ref_count + 1);
|
MESOSPHERE_ABORT_UNLESS(cur_ref_count < cur_ref_count + 1);
|
||||||
|
|
Loading…
Reference in a new issue