Ticket #6724: active_partition.patch

File active_partition.patch, 713 bytes (added by bebop, 14 years ago)
  • src/add-ons/kernel/partitioning_systems/intel/write_support.cpp

     
    13511351        for (int i = 0; i < 4; i++) {
    13521352            PrimaryPartition* partition = map->PrimaryPartitionAt(i);
    13531353            partition->SetActive(false);
     1354            partition_data* part_data = get_child_partition(partitionID, i);
     1355            if (part_data) {
     1356                free(part_data->parameters);               
     1357                part_data->parameters = strdup(""); // ONLY WORKS BECAUSE THERE IS ONLY ONE THING IN THE PARAMETERS LIST
     1358            }
    13541359        }
    13551360    }
    13561361