зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
67644008cd
Коммит
63e954c5b6
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче