Add read permission to file stream.
This commit is contained in:
parent
420b7529c6
commit
dae9c9c9b6
@ -83,7 +83,8 @@ namespace AaxDecrypter
|
|||||||
}
|
}
|
||||||
|
|
||||||
var speedup = (int)(aaxFile.Duration.TotalSeconds / (long)Elapsed.TotalSeconds);
|
var speedup = (int)(aaxFile.Duration.TotalSeconds / (long)Elapsed.TotalSeconds);
|
||||||
Serilog.Log.Logger.Information($"Speedup is {speedup}x realtime.");
|
Console.WriteLine("Speedup is " + speedup + "x realtime.");
|
||||||
|
Console.WriteLine("Done");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,7 +145,7 @@ namespace AaxDecrypter
|
|||||||
if (File.Exists(outputFileName))
|
if (File.Exists(outputFileName))
|
||||||
FileExt.SafeDelete(outputFileName);
|
FileExt.SafeDelete(outputFileName);
|
||||||
|
|
||||||
FileStream outFile = File.OpenWrite(outputFileName);
|
FileStream outFile = File.Open(outputFileName, FileMode.OpenOrCreate, FileAccess.ReadWrite);
|
||||||
|
|
||||||
aaxFile.SetDecryptionKey(downloadLicense.AudibleKey, downloadLicense.AudibleIV);
|
aaxFile.SetDecryptionKey(downloadLicense.AudibleKey, downloadLicense.AudibleIV);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user