diff --git a/programs/cmm/lib/copyf.h b/programs/cmm/lib/copyf.h index d712356fd5..d0a0b29a1d 100644 --- a/programs/cmm/lib/copyf.h +++ b/programs/cmm/lib/copyf.h @@ -41,10 +41,10 @@ { debugln("Error: CopyFile->GetFileInfo"); } - else if (GetFreeRAM() < CopyFile_atr.sizelo) + else if (GetFreeRAM()-1024*1024 < CopyFile_atr.sizelo) //GetFreeRam-1Mb and convert to bytes { - debugln("Error: CopyFile->File size is bigger than RAM avilable"); - error = 30; + debugln("Error: CopyFile->File size is bigger than RAM avilable"); + error = 30; } else { cbuf = malloc(CopyFile_atr.sizelo); diff --git a/programs/cmm/lib/kolibri.h b/programs/cmm/lib/kolibri.h index 05aa078351..b04474e1e2 100644 --- a/programs/cmm/lib/kolibri.h +++ b/programs/cmm/lib/kolibri.h @@ -133,7 +133,7 @@ inline fastcall dword GetFreeRAM() $mov eax, 18 $mov ebx, 16 $int 0x40 - //return eax = ðàçìåð ñâîáîäíîé ïàìÿòè â êèëîáàéòàõ + //return eax = free RAM in Kb } inline fastcall dword LoadDriver(ECX) //ECX - èìÿ äðàéâåðà