-修复导出覆盖文件内容错误的问题

This commit is contained in:
WMJ
2026-01-22 16:53:52 +08:00
parent a0940f9609
commit 3da45b565f
+1 -1
View File
@@ -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;
}