forked from Mirror/GodMode9
fix null pointer deref when cancelling ticket.db mounting
take 2
This commit is contained in:
parent
2ef408f4af
commit
398c7fd14c
@ -138,8 +138,11 @@ u64 InitVTickDbDrive(void) { // prerequisite: ticket.db mounted as image
|
||||
}
|
||||
|
||||
ScanTickDb(false, true);
|
||||
if (!tick_info->n_entries) DeinitVTickDbDrive();
|
||||
return (tick_info->n_entries) ? SYS_TICKDB : 0;
|
||||
|
||||
if (!tick_info->n_entries)
|
||||
DeinitVTickDbDrive();
|
||||
|
||||
return tick_info ? SYS_TICKDB : 0;
|
||||
}
|
||||
|
||||
u64 CheckVTickDbDrive(void) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user