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:
parent
a2be828a33
commit
ed44e3730d
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user