From 11e35fedfb70aafdc3953f125abd158086387956 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Tue, 21 Jan 2014 20:24:35 +0000 Subject: [PATCH] newlib: DrawWindow(): clear esi git-svn-id: svn://kolibrios.org@4506 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/sdk/sources/newlib/include/kos32sys.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contrib/sdk/sources/newlib/include/kos32sys.h b/contrib/sdk/sources/newlib/include/kos32sys.h index 846460bc2a..20b4f95bb6 100644 --- a/contrib/sdk/sources/newlib/include/kos32sys.h +++ b/contrib/sdk/sources/newlib/include/kos32sys.h @@ -94,10 +94,11 @@ static inline void DrawWindow(int x, int y, int w, int h, const char *name, __asm__ __volatile__( "int $0x40" ::"a"(0), - "b"((x << 16) | ((w-1) & 0xFFFF)), - "c"((y << 16) | ((h-1) & 0xFFFF)), - "d"((style << 24) | (workcolor & 0xFFFFFF)), - "D"(name)); + "b"((x << 16) | ((w-1) & 0xFFFF)), + "c"((y << 16) | ((h-1) & 0xFFFF)), + "d"((style << 24) | (workcolor & 0xFFFFFF)), + "D"(name), + "S"(0)); }; static inline