[DISKPART] Implement the UNIQUEID command

This commit is contained in:
Eric Kohl 2022-06-07 19:42:09 +02:00
parent c8f6440a78
commit da0bff2a50

View file

@ -48,7 +48,7 @@ UniqueIdDisk(
} }
if ((pszSuffix == NULL) || if ((pszSuffix == NULL) ||
(wcslen(pszSuffix) > 8) || (wcslen(pszSuffix) != 8) ||
(IsHexString(pszSuffix) == FALSE)) (IsHexString(pszSuffix) == FALSE))
{ {
ConResPuts(StdErr, IDS_ERROR_INVALID_ARGS); ConResPuts(StdErr, IDS_ERROR_INVALID_ARGS);
@ -62,12 +62,11 @@ UniqueIdDisk(
return TRUE; return TRUE;
} }
ConPrintf(StdOut, L"Setting the disk signature is not implemented yet!\n"); DPRINT("New Signature: 0x%08lx\n", ulValue);
#if 0
DPRINT1("New Signature: %lx\n", ulValue);
CurrentDisk->LayoutBuffer->Signature = ulValue; CurrentDisk->LayoutBuffer->Signature = ulValue;
// SetDiskLayout(CurrentDisk); CurrentDisk->Dirty = TRUE;
#endif UpdateDiskLayout(CurrentDisk);
WritePartitions(CurrentDisk);
return TRUE; return TRUE;
} }