Browse Source

+ initialize the PrefixSeg variable from the win16 startup code

git-svn-id: trunk@31535 -
nickysn 10 years ago
parent
commit
72d6876225
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/win16/prt0comn.asm

+ 3 - 0
rtl/win16/prt0comn.asm

@@ -26,6 +26,7 @@
                 segment _TEXT use16 class=CODE align=1
                 segment _TEXT use16 class=CODE align=1
 
 
                 extern PASCALMAIN
                 extern PASCALMAIN
+                extern __fpc_PrefixSeg
 
 
                 extern InitTask
                 extern InitTask
                 import InitTask KERNEL
                 import InitTask KERNEL
@@ -64,6 +65,8 @@
                 ; ES:BX = the command line
                 ; ES:BX = the command line
                 ; SI = instance handle for the previous application instance (if any)
                 ; SI = instance handle for the previous application instance (if any)
 
 
+                mov ax, es
+                mov [__fpc_PrefixSeg], ax
                 mov [hInst], di
                 mov [hInst], di
 
 
                 ; call WaitEvent(0) to clear the event that started this task
                 ; call WaitEvent(0) to clear the event that started this task