From 8637a0873cac61f44232c3f38fdd8df45a99571d Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 5 Jan 2014 21:28:58 +0000 Subject: [PATCH] TmpDisk: small code optimization git-svn-id: svn://kolibrios.org@4425 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/tmpdisk/t_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cmm/tmpdisk/t_window.c b/programs/cmm/tmpdisk/t_window.c index b58d081e1a..648db38290 100644 --- a/programs/cmm/tmpdisk/t_window.c +++ b/programs/cmm/tmpdisk/t_window.c @@ -71,7 +71,7 @@ void Main_Window() switch(WaitEvent()) { case evMouse: - if (GetProcessSlot(Form.ID)-GetActiveProcess()!=0) break; + if (!CheckActiveProcess(Form.ID)) break; edit_box_mouse stdcall (#edit_disk_size); break;