Skip to content

Commit b93d4c0

Browse files
If program is started from root folder of a drive, the pre-set folder keeps the trailing backslash
1 parent 8e93604 commit b93d4c0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SyncFolders/Forms/SyncFoldersForm.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ private void TestIfRunningFromReadonnly()
609609
StringComparison.InvariantCultureIgnoreCase);
610610

611611
string strStartupPathWOTrailingSlash =
612+
Application.StartupPath.Length>3 &&
612613
Application.StartupPath.EndsWith(Path.DirectorySeparatorChar) ?
613614
Application.StartupPath.Substring(0, Application.StartupPath.Length - 1) :
614615
Application.StartupPath;

0 commit comments

Comments
 (0)