mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 10:40:12 +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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user