Fix for bug 102811: CCK does not check for disk space while creating

Linux build (r=tao)
Checking 27x3Mb disk space before creating build
This commit is contained in:
shrutiv%netscape.com 2001-10-03 15:57:53 +00:00
Родитель 67644008cd
Коммит 63e954c5b6
1 изменённых файлов: 19 добавлений и 6 удалений

Просмотреть файл

@ -1210,12 +1210,25 @@ int StartIB(CString parms, WIDGET *curWidget)
ULARGE_INTEGER nTotalBytes, nTotalFreeBytes, nTotalAvailable;
GetDiskFreeSpaceEx(NULL,&nTotalAvailable, &nTotalBytes, &nTotalFreeBytes);
// Checking for 26.3MB disk space
if ((nTotalAvailable.QuadPart) > 27,577,549)
;
else
{
AfxMessageBox("You dont have enough Disk space ", MB_OK);
return FALSE;
if (linuxOption != "Linux")
{
if ((nTotalAvailable.QuadPart) > 27,577,549)
;
else
{
AfxMessageBox("You dont have enough Disk space ", MB_OK);
return FALSE;
}
}
else
{
if ((nTotalAvailable.QuadPart) > 84,934,656)
;
else
{
AfxMessageBox("You dont have enough Disk space ", MB_OK);
return FALSE;
}
}
//Check for Disk space over