Windows: Add support for /nosizecheck switch in Format command line file container creation

This commit is contained in:
Mounir IDRASSI 2019-10-02 18:57:30 +02:00
parent fa3d4c79c9
commit b39a724f26
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -6243,7 +6243,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
}
else
{
if (!dynamicFormat && (nVolumeSize > free.QuadPart))
if (!dynamicFormat && !bDontCheckFileContainerSize && (nVolumeSize > free.QuadPart))
{
AbortProcess ("ERR_CONTAINER_SIZE_TOO_BIG");
}