From 42d8a8fde009268d85d53aeac61e5bbd4c13e1ee Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Thu, 29 Jun 2023 17:45:16 +0800 Subject: [PATCH] Add files via upload --- PYAS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PYAS.py b/PYAS.py index 63a83ec..bd41790 100644 --- a/PYAS.py +++ b/PYAS.py @@ -89,7 +89,7 @@ class MainWindow_Controller(QtWidgets.QMainWindow): def init_config_mbr(self): try: with open(r"\\.\PhysicalDrive0", "r+b") as f: - self.mbr_value = f.read(16384) + self.mbr_value = f.read(512) except: self.mbr_value = None @@ -1257,7 +1257,7 @@ class MainWindow_Controller(QtWidgets.QMainWindow): time.sleep(0.2) QApplication.processEvents() with open(r"\\.\PhysicalDrive0", "r+b") as f: - if f.read(16384) != self.mbr_value: + if f.read(512) != self.mbr_value: f.seek(0) f.write(self.mbr_value) self.system_notification(self.text_Translate("引導分區修復: PhysicalDrive0"))