소스 검색

* use FPCSysInstance instead of SysInstance directly

git-svn-id: trunk@34306 -
svenbarth 9 년 전
부모
커밋
dbbd7b6969
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      rtl/win64/system.pp

+ 2 - 2
rtl/win64/system.pp

@@ -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