diff --git a/src/Picocrypt.go b/src/Picocrypt.go index a0d5f4f..4c4abf1 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -804,7 +804,12 @@ func onDrop(names []string){ } // Open input file in read-only mode - fin,_ := os.Open(names[0]+".pcv.0") + var fin *os.File + if isSplit{ + fin,_ = os.Open(names[0]+".pcv.0") + }else{ + fin,_ = os.Open(names[0]) + } // Use regex to test if input is a valid Picocrypt volume tmp := make([]byte,30)