We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8741d commit 182715eCopy full SHA for 182715e
base/system/diskpart/delete.c
@@ -173,13 +173,14 @@ DeleteGptPartition(
173
List->SystemPartition = NULL;
174
}
175
#endif
176
-#if 0
177
- if ((bOverride == FALSE) && (IsKnownPartition(CurrentPartition) == FALSE))
+
+ if ((bOverride == FALSE) &&
178
+ ((memcmp(&CurrentPartition->Gpt.PartitionType, &PARTITION_SYSTEM_GUID, sizeof(GUID)) == 0) ||
179
+ (memcmp(&CurrentPartition->Gpt.PartitionType, &PARTITION_MSFT_RESERVED_GUID, sizeof(GUID)) == 0)))
180
{
181
ConResPuts(StdOut, IDS_DELETE_PARTITION_FAIL);
182
return;
183
-#endif
184
185
#ifdef DUMP_PARTITION_LIST
186
DumpPartitionList(CurrentDisk);
0 commit comments