1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-29 23:32:23 +00:00

pm: fix missing flag clears

This commit is contained in:
Michael Scire 2019-07-02 22:57:43 -07:00 committed by SciresM
parent a9f5b7728b
commit c20774ff5d
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 45700a12e80404e3c49e2bc4893412489fc72040 Subproject commit ccfadc501bb89c3b42b7b4ed473094fee8c1043f

View file

@ -470,11 +470,13 @@ namespace sts::pm::impl {
for (size_t i = 0; i < list->GetSize(); i++) { for (size_t i = 0; i < list->GetSize(); i++) {
auto process_info = list[i]; auto process_info = list[i];
if (process_info->HasStarted() && process_info->HasStartedStateChanged()) { if (process_info->HasStarted() && process_info->HasStartedStateChanged()) {
process_info->ClearStartedStateChanged();
out->event = GetProcessEventValue(ProcessEvent::Started); out->event = GetProcessEventValue(ProcessEvent::Started);
out->process_id = process_info->GetProcessId(); out->process_id = process_info->GetProcessId();
return ResultSuccess; return ResultSuccess;
} }
if (process_info->HasSuspendedStateChanged()) { if (process_info->HasSuspendedStateChanged()) {
process_info->ClearSuspendedStateChanged();
if (process_info->IsSuspended()) { if (process_info->IsSuspended()) {
out->event = GetProcessEventValue(ProcessEvent::DebugSuspended); out->event = GetProcessEventValue(ProcessEvent::DebugSuspended);
} else { } else {