2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 15:21:32 +00:00

Avoid erasing non-existent signatures in undi_unload()

This commit is contained in:
Michael Brown 2007-01-09 02:53:24 +00:00
parent a2be828a33
commit ed44e3730d

View File

@ -170,8 +170,10 @@ int undi_unload ( struct undi_device *undi ) {
DBGC ( undi, "UNDI %p unloading\n", undi );
/* Erase signatures */
put_real ( dead, undi->pxenv.segment, undi->pxenv.offset );
put_real ( dead, undi->ppxe.segment, undi->ppxe.offset );
if ( undi->pxenv.segment )
put_real ( dead, undi->pxenv.segment, undi->pxenv.offset );
if ( undi->ppxe_segment )
put_real ( dead, undi->ppxe.segment, undi->ppxe.offset );
/* Free base memory, if possible */
get_real ( fbms, BDA_SEG, BDA_FBMS );