From 0a35216e52071592f414e65dab71f1fd0b0a3e1e Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Sun, 8 Aug 2010 21:43:40 +0000 Subject: [PATCH] fix bug #16 git-svn-id: svn://kolibrios.org@1563 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/fs_lfn.inc | 4 ++-- kernel/trunk/gui/window.inc | 4 ++++ kernel/trunk/kernel.asm | 5 ----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/kernel/trunk/fs/fs_lfn.inc b/kernel/trunk/fs/fs_lfn.inc index 5650b8bff3..578422b65e 100644 --- a/kernel/trunk/fs/fs_lfn.inc +++ b/kernel/trunk/fs/fs_lfn.inc @@ -902,7 +902,7 @@ biosdisk_enum_root: xor eax, eax ret .big: - push ecx + push ecx edx push -'0' mov ecx, 10 @@: @@ -917,7 +917,7 @@ biosdisk_enum_root: add al, '0' stosb jnz @b - pop ecx + pop edx ecx pop eax inc eax ret diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index e4886fc151..2cb04f94ad 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -319,6 +319,9 @@ syscall_move_window: ;///// system function 67 //////////////////////////////// shl edi, 5 add edi, window_data + test [edi + WDATA.fl_wdrawn], 1 + jz .exit + test [edi + WDATA.fl_wstate], WSTATE_MAXIMIZED jnz .exit @@ -1437,6 +1440,7 @@ window._.sys_set_window: ;///////////////////////////////////////////////////// ; was it already defined before? test [edi + WDATA.fl_wdrawn], 1 jnz .set_client_box + or [edi + WDATA.fl_wdrawn], 1 ; NOTE: commented out since doesn't provide necessary functionality ; anyway, to be reworked diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index dbefe701b4..1520c2c1fd 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -2907,11 +2907,6 @@ sys_redrawstat: mov eax, [Screen_Max_Y] mov [edx + RECT.bottom], eax - mov edi, [TASK_BASE] - or [edi - twdw + WDATA.fl_wdrawn], 1 ; no new position & buttons from app - call sys_window_mouse - ret - srl1: ret