From 759ee15fdfcf7257aa5ac35d5c49224b30e2580d Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 17 Sep 2017 02:19:14 +0000 Subject: [PATCH] fix for prior rev git-svn-id: svn://kolibrios.org@6980 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/copyf.h | 6 +++--- programs/cmm/lib/kolibri.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 - èìÿ äðàéâåðà