Browse Source

Support long paths when checking for file existence

Source commit: b2dcc778ad505b1d1d45d0941cdb8dd8e1052557
Martin Prikryl 9 years ago
parent
commit
8230610ade
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/forms/Preferences.cpp

+ 1 - 1
source/forms/Preferences.cpp

@@ -2468,7 +2468,7 @@ void __fastcall TPreferencesDialog::AddExtension()
       }
       else
       {
-        if (!FileExists(Path))
+        if (!FileExists(ApiPath(Path)))
         {
           throw Exception(MainInstructions(FMTLOAD(FILE_NOT_EXISTS, (Path))));
         }