mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Fix NULL dereference
Thanks @AuroraWright!
This commit is contained in:
parent
0b7076ced3
commit
1e36b3ca98
@ -55,7 +55,7 @@ bool ReadVVramDir(VirtualFile* vfile, VirtualDir* vdir) {
|
||||
if (vdir->index < 0) tardata = FirstVTarEntry();
|
||||
else tardata = NextVTarEntry(OffsetVTarEntry(vdir->index << 9));
|
||||
|
||||
do {
|
||||
if (tardata) do {
|
||||
TarHeader* tar = (TarHeader*) tardata;
|
||||
char tar_fname[100 + 1];
|
||||
char *name, *dir;
|
||||
|
Loading…
x
Reference in New Issue
Block a user