With LOADER_MBR_SUPPORT defined and LOADER_GPT_SUPPORT undefined we would

never call disk_openmbr().

Submitted by:	avg
MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2011-10-20 15:46:54 +00:00
parent 9838b8b0ee
commit b65ede43fb

View File

@ -776,10 +776,11 @@ disk_open(struct disk_devdesc *dev)
#ifdef LOADER_GPT_SUPPORT
rc = disk_opengpt(dev);
if (rc == 0)
return (0);
#endif
#ifdef LOADER_MBR_SUPPORT
if (rc)
rc = disk_openmbr(dev);
rc = disk_openmbr(dev);
#endif
return (rc);