Use mediaClose instead of shutdown

This commit is contained in:
Paul Traina 1997-04-01 02:00:42 +00:00
parent 406fab58af
commit 240a4c64d5

View File

@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated for what's essentially a complete rewrite.
*
* $Id$
* $Id: variable_load.c,v 1.1 1997/03/19 10:09:28 jkh Exp $
*
* Copyright (c) 1997
* Paul Traina. All rights reserved.
@ -81,7 +81,8 @@ variableLoad(dialogMenuItem * self)
if (DITEM_STATUS(mediaSetFloppy(NULL)) == DITEM_FAILURE ||
mediaDevice->init(mediaDevice)) {
msgConfirm("Unable to access floppy.");
return DITEM_FAILURE | what;
what |= DITEM_FAILURE;
goto terminate_device;
}
fp = mediaDevice->get(mediaDevice, cp, TRUE);
@ -107,7 +108,7 @@ variableLoad(dialogMenuItem * self)
fclose(fp);
terminate_device:
mediaDevice->shutdown(mediaDevice);
mediaClose();
return what;
}