From 58e73832cd4edf17177b2ba9df1620c2dd7736da Mon Sep 17 00:00:00 2001 From: isletspace Date: Thu, 27 Nov 2025 14:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=8F=98=E9=87=8F=20nSectorSize=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=B8=B8=E9=87=8F=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 42bfbab..76586ff 100644 --- a/main.cpp +++ b/main.cpp @@ -2559,7 +2559,7 @@ bool read_lba(STRUCT_RKDEVICE_DESC &dev, UINT uiBegin, UINT uiLen, char *szFile) bool bRet, bFirst = true, bSuccess = false; int iRet; UINT iTotalRead = 0,iRead = 0; - int nSectorSize = 512; + const int nSectorSize = 512; BYTE pBuf[nSectorSize * DEFAULT_RW_LBA]; pComm = new CRKUsbComm(dev, g_pLogObject, bRet); if (bRet) { @@ -2931,7 +2931,7 @@ bool write_lba(STRUCT_RKDEVICE_DESC &dev, UINT uiBegin, char *szFile) long long iTotalWrite = 0, iFileSize = 0; UINT iWrite = 0, iRead = 0; UINT uiLen; - int nSectorSize = 512; + const int nSectorSize = 512; BYTE pBuf[nSectorSize * DEFAULT_RW_LBA];