creport: address review commentary

This commit is contained in:
Michael Scire authored and SciresM committed 2019-07-15 14:35:48 -07:00
1 parent 00e3d874e3
commit 4cc2b5c38a
5 files changed
+13 -46

No files matched your search

+2 -2
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);
}
}