Bugfix: Preserve EAX in UnMapSLFixArray().
diff --git a/memory/selector.c b/memory/selector.c
index ac64ef2..2e2b6ff 100644
--- a/memory/selector.c
+++ b/memory/selector.c
@@ -554,8 +554,11 @@
* UnMapSLFixArray (KERNEL32.701)
*/
-void WINAPI UnMapSLFixArray( SEGPTR sptr[], INT32 length )
+REGS_ENTRYPOINT(UnMapSLFixArray) /* SEGPTR sptr[], INT32 length */
{
+ /* Must not change EAX, hence defined as 'register' function */
+ /* We need to remove the arguments ourselves */
+ ESP_reg( context ) += 8;
}
/***********************************************************************