From e0dba7c23846b1a14488fbb315385ade6ec7d5bb Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Thu, 6 Mar 2014 22:15:33 +0000 Subject: [PATCH] TmpDisk 0.5.1: not displayed on the board size for the disk(fixed) git-svn-id: svn://kolibrios.org@4616 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/tmpdisk/t_console.c | 4 +++- programs/cmm/tmpdisk/t_window.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/cmm/tmpdisk/t_console.c b/programs/cmm/tmpdisk/t_console.c index 0c66322974..2c07450ce9 100644 --- a/programs/cmm/tmpdisk/t_console.c +++ b/programs/cmm/tmpdisk/t_console.c @@ -36,6 +36,7 @@ char Console_Work() { unsigned int disk_size, driver_rezult; char size_t[256]; + dword size_tt; strlwr(#param); // debug(#param); @@ -70,7 +71,8 @@ char Console_Work() else add_disk.DiskSize = atoi(#param+disk_size)*2048; strcpy(#size_t, NEW_DISK_TEXT); - strcat(#size_t, itoa(add_disk.DiskSize/2048)); + size_tt = itoa(add_disk.DiskSize/2048); + strcat(#size_t, size_tt); strcat(#size_t, " MB"); debug(#size_t); add_disk.DiskId = param[1]-'0'; diff --git a/programs/cmm/tmpdisk/t_window.c b/programs/cmm/tmpdisk/t_window.c index 648db38290..dfc5648118 100644 --- a/programs/cmm/tmpdisk/t_window.c +++ b/programs/cmm/tmpdisk/t_window.c @@ -153,7 +153,7 @@ void Main_Window() break; case evReDraw: sc.get(); - DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.5",0); + DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.5.1",0); GetProcessInfo(#Form, SelfInfo); if (Form.status_window>2) break;