Skip to content

Commit

Permalink
Don't assume that a directory doesn't exist when chkDirExist is called
Browse files Browse the repository at this point in the history
  • Loading branch information
MoscaDotTo committed Dec 22, 2018
1 parent 14adb8a commit 3d9a015
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -33,3 +33,4 @@
/winapp2ool/obj/Release/winapp2ool.vbprojAssemblyReference.cache
/winapp2ool/obj/Release/winapp2ool.exe
/winapp2ool/obj/Debug/winapp2ool.exe
/.vs/*
Binary file modified .vs/slnx.sqlite
Binary file not shown.
Binary file modified .vs/winapp2/v16/.suo
Binary file not shown.
Binary file modified winapp2ool/bin/Debug/winapp2ool.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion winapp2ool/components/inifilehandler.vb
Expand Up @@ -97,7 +97,7 @@ Public Module iniFileHandler
''' </summary>
''' <param name="dir">A user defined windows directory</param>
Public Sub chkDirExist(ByRef dir As String)
If pendingExit() Then Exit Sub
If pendingExit() Or Directory.Exists(dir) Then Exit Sub
Dim iExitCode As Boolean = False
menuHeaderText = "Error"
While Not iExitCode
Expand Down

0 comments on commit 3d9a015

Please sign in to comment.