diff --git a/ide/generatefppkgconfigurationdlg.pas b/ide/generatefppkgconfigurationdlg.pas index f37556c387..7a71e008e6 100644 --- a/ide/generatefppkgconfigurationdlg.pas +++ b/ide/generatefppkgconfigurationdlg.pas @@ -150,7 +150,7 @@ begin ChkPath := ExtractFileDir(ExtractFileDir(EnvironmentOptions.GetParsedCompilerFilename)); {$IFDEF WINDOWS} - ChkPath := ExtractFileDir(ExtractFileDir(ChkPath)); + ChkPath := ExtractFileDir(ChkPath); {$ENDIF WINDOWS} CheckPath(ChkPath, FpcPrefixCombobox.Items);