fixing the check for disk space

This commit is contained in:
varada%netscape.com 2000-03-28 19:58:24 +00:00
parent 8b1e4db9f4
commit c21d0ef060

View File

@ -623,6 +623,19 @@ int StartIB(CString parms, WIDGET *curWidget)
else else
nscpxpiPath = rootPath + "NSCPXPI"; nscpxpiPath = rootPath + "NSCPXPI";
iniSrcPath = nscpxpiPath + "\\config.ini"; iniSrcPath = nscpxpiPath + "\\config.ini";
//Check for disk space before continuing
ULARGE_INTEGER nTotalBytes, nTotalFreeBytes, nTotalAvailable;
GetDiskFreeSpaceEx(NULL,&nTotalAvailable, &nTotalBytes, &nTotalFreeBytes);
if ((nTotalAvailable.QuadPart) > 17,505,658)
;
else
{
AfxMessageBox("You dont have enough Disk space ", MB_OK);
return FALSE;
}
//Check for Disk space over
init_components(); init_components();
//checking for the autorun CD shell - inorder to create a Core dir or not //checking for the autorun CD shell - inorder to create a Core dir or not