[core] refactor CreatePartition()

* Also add groundwork for optional creation of MSR (see #432)
* Also fix a few minor issues
This commit is contained in:
Pete Batard 2015-01-19 01:23:32 +00:00
parent 0440e1fb3d
commit ec761dfb41
3 changed files with 129 additions and 123 deletions

View file

@ -1778,12 +1778,12 @@ DWORD WINAPI FormatThread(void* param)
}
if (!SetupWinToGo(drive_name)) {
if (!IS_ERROR(FormatStatus))
FormatStatus = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|ERROR_ISO_EXTRACT;
FormatStatus = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|APPERR(ERROR_ISO_EXTRACT);
goto out;
}
} else if (!ExtractISO(image_path, drive_name, FALSE)) {
if (!IS_ERROR(FormatStatus))
FormatStatus = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|ERROR_ISO_EXTRACT;
FormatStatus = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|APPERR(ERROR_ISO_EXTRACT);
goto out;
}
if (iso_report.has_kolibrios) {