address review

This commit is contained in:
Behemoth 2020-07-12 21:11:49 +02:00
parent d784f5a4cc
commit ee780c9991

View File

@ -148,8 +148,8 @@ Result newsGetSavedataUsage(u64 *current, u64 *total) {
Result rc = serviceDispatchOut(&g_newsSrv, 30110, out); Result rc = serviceDispatchOut(&g_newsSrv, 30110, out);
if (R_SUCCEEDED(rc)) { if (R_SUCCEEDED(rc)) {
*current = out.current; if (current) *current = out.current;
*total = out.total; if (total) *total = out.total;
} }
return rc; return rc;
@ -158,7 +158,7 @@ Result newsGetSavedataUsage(u64 *current, u64 *total) {
Result newsIsSystemUpdateRequired(bool *out) { Result newsIsSystemUpdateRequired(bool *out) {
u8 tmp=0; u8 tmp=0;
Result rc = serviceDispatchOut(&g_newsSrv, 30200, tmp); Result rc = serviceDispatchOut(&g_newsSrv, 30200, tmp);
if (R_SUCCEEDED(rc)) *out = tmp; if (R_SUCCEEDED(rc) && out) *out = tmp & 1;
return rc; return rc;
} }