From a71d8fb5411fd6c43255dfac93fae08f428155b4 Mon Sep 17 00:00:00 2001 From: Galkov Date: Fri, 10 Apr 2009 04:12:06 +0000 Subject: [PATCH] oops: fix in RemoveEventTo git-svn-id: svn://kolibrios.org@1059 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/event.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trunk/gui/event.inc b/kernel/trunk/gui/event.inc index 342beab5ce..bc13527731 100644 --- a/kernel/trunk/gui/event.inc +++ b/kernel/trunk/gui/event.inc @@ -100,6 +100,8 @@ RemoveEventTo: ;; INTERNAL use !!! don't use ;scratched: ebx,ecx mov ecx,eax ; ecx=eax=Self, ebx=NewLeft xchg ecx,[ebx+EVENT.fd] ; NewLeft.fd=Self, ecx=NewRight + cmp eax,ecx ; стоп, себе думаю... + je .break ; - а не дурак ли я? mov [ecx+EVENT.bk],eax ; NewRight.bk=Self xchg ebx,[eax+EVENT.bk] ; Self.bk=NewLeft, ebx=OldLeft xchg ecx,[eax+EVENT.fd] ; Self.fd=NewRight, ecx=OldRight