• Robert Sprowson's avatar
    Fix for NULL pointer dereference · 7bf27176
    Robert Sprowson authored
    When no drives are detected (but some are configured) CDFSSoftATAPI goes dormant by setting its private word to 0. However, when the module finalises (eg. an RMReinit) that NULL value is then used to call CD_Unregister, and attempting to free the same NULL value with OS_Module.
    Also replaced magic numbers from Hdr:ModHand and Hdr:OsBytes.
    
    Version 1.34. Tagged as 'ATAPI-1_34'
    7bf27176
ATAPIStuff 57.8 KB