mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
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);
|
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) {
|
u64 CheckVTickDbDrive(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user