mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-17 04:41:14 +08:00
-修复导出覆盖文件内容错误的问题
This commit is contained in:
@@ -227,7 +227,7 @@ namespace PDFPatcher.Common
|
||||
return source.DumpBytes(path, 0, source?.Length ?? 0);
|
||||
}
|
||||
public static byte[] DumpBytes(this byte[] source, FilePath path, int offset, int count) {
|
||||
using (var f = new FileStream(path.ToFullPath(), FileMode.OpenOrCreate, FileAccess.Write)) {
|
||||
using (var f = new FileStream(path.ToFullPath(), FileMode.Create, FileAccess.Write)) {
|
||||
if (source == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user