creport: address review commentary

This commit is contained in:
Michael Scire
2019-07-12 18:18:31 -07:00
committed by SciresM
parent 00e3d874e3
commit 4cc2b5c38a
5 changed files with 13 additions and 46 deletions

View File

@@ -108,8 +108,8 @@ int main(int argc, char **argv) {
/* Try to terminate the process. */
{
auto ns_holder = sts::sm::ScopedServiceHolder<nsdevInitialize, nsdevExit>();
if (R_SUCCEEDED(ns_holder.GetResult())) {
sts::sm::ScopedServiceHolder<nsdevInitialize, nsdevExit> ns_holder;
if (ns_holder) {
nsdevTerminateProcess(crashed_pid);
}
}