From b79b5e1c3348a9c5e14a0c2edd6191a4607ffcdd Mon Sep 17 00:00:00 2001 From: qyt <486179@qq.com> Date: Wed, 5 Aug 2026 09:00:01 +0000 Subject: [PATCH] Potential fix for code scanning alert no. 86 Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp b/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp index ea5b20c..07a10e0 100644 --- a/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp +++ b/XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp @@ -262,10 +262,7 @@ bool XEngine_Task_HttpDownload(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, in BaseLib_String_GetFileAndPath(tszFileDir, NULL, NULL, NULL, st_HDRParam.tszMimeType); int nEffectiveLimit = 0; xhLimit = NULL; - if (nEffectiveLimit > 0) - { - xhLimit = Algorithm_Calculation_Create(); - } + // 当前逻辑下不限速:nEffectiveLimit 固定为 0,xhLimit 保持为 NULL //插入数据 if (!Session_DLStroage_Insert(lpszClientAddr, st_StorageBucket.tszBuckKey, tszFileDir, &ullCount, &ullSize, nPosStart, nPosEnd, tszHashStr, nEffectiveLimit, xhLimit)) {