Author: tkreuzer Date: Wed Jul 27 13:37:57 2011 New Revision: 52923
URL: http://svn.reactos.org/svn/reactos?rev=52923&view=rev Log: [NTOSKRNL] Fix MSVC version of KiConvertToGuiThread (save and restore ebx) Noticed by Dmitry
Modified: trunk/reactos/ntoskrnl/ke/i386/trap.s
Modified: trunk/reactos/ntoskrnl/ke/i386/trap.s URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/trap.s?rev... ============================================================================== --- trunk/reactos/ntoskrnl/ke/i386/trap.s [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/i386/trap.s [iso-8859-1] Wed Jul 27 13:37:57 2011 @@ -167,6 +167,9 @@
PUBLIC _KiConvertToGuiThread@0 _KiConvertToGuiThread@0: + /* Safe ebx */ + push ebx + /* Calculate the stack frame offset in ebx */ mov ebx, ebp sub ebx, esp @@ -178,6 +181,9 @@ mov ebp, esp add ebp, ebx
+ /* Restore ebx */ + pop ebx + /* return to the caller */ ret #endif