Browse Source

Avoid possible memory corruption.

Margers 1 month ago
parent
commit
9b04fde696
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ide/fpide.pas

+ 1 - 1
packages/ide/fpide.pas

@@ -1552,7 +1552,6 @@ begin
 {$endif ndef Windows}
   InitEvents;
   InitSysError;
-  CurDirChanged;
 {$ifndef Windows}
   if (oldH<>ScreenHeight) or (oldW<>ScreenWidth) then
   begin
@@ -1584,6 +1583,7 @@ begin
   UpdateScreen(true);
 {$endif go32v2}
 {$endif Windows}
+  CurDirChanged; {To avoid memory corruption, palce this call after screen resize has been done.}
   displaymode:=dmIDE;
 end;