We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f681f01 commit 0bc38f5Copy full SHA for 0bc38f5
1 file changed
src/adf_dir.c
@@ -1355,7 +1355,9 @@ unsigned adfDirCheck( const struct AdfVolume * const vol,
1355
{
1356
struct AdfEntryBlock parent, entryBlk;
1357
1358
- if ( adfReadEntryBlock( vol, nSect, &parent ) != ADF_RC_OK )
+ if ( adfReadEntryBlock( vol, nSect, &parent ) != ADF_RC_OK ||
1359
+ ( parent.type != ADF_ST_ROOT &&
1360
+ parent.type != ADF_ST_DIR ) )
1361
return 1;
1362
1363
unsigned nErrors = 0;
0 commit comments