Skip to content

Commit 4702c12

Browse files
committed
fixed:build error
1 parent ac95ebf commit 4702c12

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

XEngine_Source/XEngine_StorageApp/Storage_APPTask/Storage_TaskManage.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ BOOL XEngine_Task_Manage(LPCTSTR lpszAPIName, LPCTSTR lpszClientAddr, LPCTSTR lp
209209
XStorage_SQLite_FileQuery(&ppSt_ListFile, &nListCount, tszTimeStart, tszTimeEnd, tszFileName, tszFileHash);
210210
}
211211

212-
Protocol_StoragePacket_QueryFile(tszMsgBuffer, &nMsgLen, &ppSt_ListFile, nListCount, st_ServiceCfg.st_XStorage.tszFileDir, tszTimeStart, tszTimeEnd);
212+
Protocol_StoragePacket_QueryFile(tszMsgBuffer, &nMsgLen, &ppSt_ListFile, nListCount, tszTimeStart, tszTimeEnd);
213213
RfcComponents_HttpServer_SendMsgEx(xhCenterHttp, tszSDBuffer, &nSDLen, &st_HDRParam, tszMsgBuffer, nMsgLen);
214214
XEngine_Net_SendMsg(lpszClientAddr, tszSDBuffer, nSDLen, STORAGE_NETTYPE_HTTPCENTER);
215215
BaseLib_OperatorMemory_Free((XPPPMEM)&ppSt_ListFile, nListCount);
@@ -239,13 +239,15 @@ BOOL XEngine_Task_Manage(LPCTSTR lpszAPIName, LPCTSTR lpszClientAddr, LPCTSTR lp
239239
int nListCount = 0;
240240
CHAR** ppszListDir = NULL;
241241
TCHAR tszUserDir[MAX_PATH];
242+
TCHAR tszBuckKey[MAX_PATH];
242243
TCHAR tszRealDir[1024];
243244

244245
memset(tszUserDir, '\0', MAX_PATH);
246+
memset(tszBuckKey, '\0', MAX_PATH);
245247
memset(tszRealDir, '\0', sizeof(tszRealDir));
246248

247-
Protocol_StorageParse_DirOperator(lpszMsgBuffer, tszUserDir, &nOPCode);
248-
_stprintf(tszRealDir, _T("%s/%s"), st_ServiceCfg.st_XStorage.tszFileDir, tszUserDir);
249+
Protocol_StorageParse_DirOperator(lpszMsgBuffer, tszUserDir, tszBuckKey, &nOPCode);
250+
_stprintf(tszRealDir, _T("%s/%s"), tszBuckKey, tszUserDir);
249251
if (0 == nOPCode)
250252
{
251253
if (!SystemApi_File_EnumFile(tszRealDir, &ppszListDir, &nListCount, NULL, NULL, TRUE, 2))

XEngine_Source/XEngine_StorageApp/Storage_APPTask/Storage_TaskP2p.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ XHTHREAD XEngine_Task_P2PThread()
4040
if (nListCount > 0)
4141
{
4242
_stprintf(pppSt_ListFile[0]->tszTableName, _T("%s:%d"), st_ServiceCfg.tszIPAddr, st_ServiceCfg.nStorageDLPort);
43-
Protocol_StoragePacket_QueryFile(tszMsgBuffer, &nMsgLen, &pppSt_ListFile, nListCount, st_ServiceCfg.st_XStorage.tszFileDir, tszTimeStart, tszTimeEnd);
43+
Protocol_StoragePacket_QueryFile(tszMsgBuffer, &nMsgLen, &pppSt_ListFile, nListCount, tszTimeStart, tszTimeEnd);
4444
BaseLib_OperatorMemory_Free((XPPPMEM)&pppSt_ListFile, nListCount);
4545

4646
SOCKET hSDSocket;
@@ -88,7 +88,7 @@ BOOL XEngine_Task_P2PGet(LPCTSTR lpszFileHash, LPCTSTR lpszClientAddr, RFCCOMPON
8888
st_HDRParam.nHttpCode = 200;
8989

9090
_stprintf(pppSt_ListFile[0]->tszTableName, _T("127.0.0.1:%d"), st_ServiceCfg.nStorageDLPort);
91-
Protocol_StoragePacket_QueryFile(tszRVBuffer, &nRVLen, &pppSt_ListFile, nListCount, st_ServiceCfg.st_XStorage.tszFileDir);
91+
Protocol_StoragePacket_QueryFile(tszRVBuffer, &nRVLen, &pppSt_ListFile, nListCount);
9292
BaseLib_OperatorMemory_Free((XPPPMEM)&pppSt_ListFile, nListCount);
9393

9494
RfcComponents_HttpServer_SendMsgEx(xhCenterHttp, tszMsgBuffer, &nMsgLen, &st_HDRParam, tszRVBuffer, nRVLen);
@@ -177,7 +177,7 @@ BOOL XEngine_Task_P2PGet(LPCTSTR lpszFileHash, LPCTSTR lpszClientAddr, RFCCOMPON
177177
int nListCount = 0;
178178
XSTORAGECORE_DBFILE** ppSt_ListPacket;
179179
APIHelp_Distributed_FileList(&stl_ListFile, &ppSt_ListPacket, &nListCount);
180-
Protocol_StoragePacket_QueryFile(tszRVBuffer, &nRVLen, &ppSt_ListPacket, nListCount, st_ServiceCfg.st_XStorage.tszFileDir);
180+
Protocol_StoragePacket_QueryFile(tszRVBuffer, &nRVLen, &ppSt_ListPacket, nListCount);
181181
RfcComponents_HttpServer_SendMsgEx(xhCenterHttp, tszMsgBuffer, &nMsgLen, &st_HDRParam, tszRVBuffer, nRVLen);
182182
BaseLib_OperatorMemory_Free((XPPPMEM)&ppSt_ListPacket, nListCount);
183183
}

0 commit comments

Comments
 (0)