mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 10:39:18 +02:00
+ Reversed setup of stdio and arguments to fix bug #3962
git-svn-id: trunk@114 -
This commit is contained in:
parent
d438530088
commit
aea4d56d46
@ -246,12 +246,12 @@ Begin
|
|||||||
{ Setup heap }
|
{ Setup heap }
|
||||||
InitHeap;
|
InitHeap;
|
||||||
SysInitExceptions;
|
SysInitExceptions;
|
||||||
{ Arguments }
|
|
||||||
SetupCmdLine;
|
|
||||||
{ Setup stdin, stdout and stderr }
|
{ Setup stdin, stdout and stderr }
|
||||||
SysInitStdIO;
|
SysInitStdIO;
|
||||||
{ Reset IO Error }
|
{ Reset IO Error }
|
||||||
InOutRes:=0;
|
InOutRes:=0;
|
||||||
|
{ Arguments }
|
||||||
|
SetupCmdLine;
|
||||||
{ threading }
|
{ threading }
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
|
@ -234,11 +234,11 @@ Begin
|
|||||||
{ Setup heap }
|
{ Setup heap }
|
||||||
InitHeap;
|
InitHeap;
|
||||||
SysInitExceptions;
|
SysInitExceptions;
|
||||||
|
{ Setup stdin, stdout and stderr }
|
||||||
|
SysInitStdIO;
|
||||||
{ Arguments }
|
{ Arguments }
|
||||||
SetupCmdLine;
|
SetupCmdLine;
|
||||||
SysInitExecPath;
|
SysInitExecPath;
|
||||||
{ Setup stdin, stdout and stderr }
|
|
||||||
SysInitStdIO;
|
|
||||||
{ Reset IO Error }
|
{ Reset IO Error }
|
||||||
InOutRes:=0;
|
InOutRes:=0;
|
||||||
{ threading }
|
{ threading }
|
||||||
|
@ -217,12 +217,12 @@ Begin
|
|||||||
{ Setup heap }
|
{ Setup heap }
|
||||||
InitHeap;
|
InitHeap;
|
||||||
SysInitExceptions;
|
SysInitExceptions;
|
||||||
{ Arguments }
|
|
||||||
SetupCmdLine;
|
|
||||||
{ Setup stdin, stdout and stderr }
|
{ Setup stdin, stdout and stderr }
|
||||||
SysInitStdIO;
|
SysInitStdIO;
|
||||||
{ Reset IO Error }
|
{ Reset IO Error }
|
||||||
InOutRes:=0;
|
InOutRes:=0;
|
||||||
|
{ Arguments }
|
||||||
|
SetupCmdLine;
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
|
Loading…
Reference in New Issue
Block a user