From 2836e1f4013b18b700f97102d92236059a93fe04 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Wed, 11 Aug 2021 13:41:33 -0400 Subject: [PATCH] Fix bug --- src/Picocrypt.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)