This commit is contained in:
Evan Su 2021-08-11 13:41:33 -04:00 committed by GitHub
parent 16ae9864a7
commit 2836e1f401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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)