mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 20:30:40 +02:00
* use FPCSysInstance instead of SysInstance directly
git-svn-id: trunk@34306 -
This commit is contained in:
parent
051317e82e
commit
dbbd7b6969
@ -601,8 +601,8 @@ begin
|
||||
GetStartupInfo(@startupinfo);
|
||||
{ some misc Win32 stuff }
|
||||
if not IsLibrary then
|
||||
SysInstance:=getmodulehandle(nil);
|
||||
MainInstance:=SysInstance;
|
||||
FPCSysInstance^:=getmodulehandle(nil);
|
||||
MainInstance:=FPCSysInstance^;
|
||||
cmdshow:=startupinfo.wshowwindow;
|
||||
{ Setup heap and threading, these may be already initialized from TLS callback }
|
||||
if not Assigned(CurrentTM.BeginThread) then
|
||||
|
Loading…
Reference in New Issue
Block a user