mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
fixing the check for disk space
This commit is contained in:
parent
8b1e4db9f4
commit
c21d0ef060
@ -623,6 +623,19 @@ int StartIB(CString parms, WIDGET *curWidget)
|
||||
else
|
||||
nscpxpiPath = rootPath + "NSCPXPI";
|
||||
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();
|
||||
//checking for the autorun CD shell - inorder to create a Core dir or not
|
||||
|
Loading…
x
Reference in New Issue
Block a user