MiSTer-devel / ao486_MiSTer

ao486 port for MiSTer
Other
252 stars 69 forks source link

MiSTerFS: Fix for divide by zero crash when trying to unload the filesystem. #113

Closed user7182 closed 2 years ago

user7182 commented 2 years ago

Removed the packet driver logic from the unload option (misterfs.exe /u). The packet driver routine doesn't exist in MiSTerFS and it was causing a crash when trying to unload it.

The unload code was also updated to not use a hard coded offset of 24. This offset was correct, but it was updated to be more consistent with how the initialization code searched for the correct offset.

Comments and formatting were updated.