Skip to content

Commit caa227c

Browse files
committed
modify:APIHelp_Distribute support filename field
1 parent 07acf69 commit caa227c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

XEngine_Source/StorageModule_APIHelp/APIHelp_Distributed/APIHelp_Distributed.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer,
178178
TCHAR tszKeyStr[128];
179179
memset(tszKeyStr, '\0', sizeof(tszKeyStr));
180180
//获得key
181+
int i = 0;
181182
int nLen = _tcslen(lpszMsgBuffer);
182-
for (int i = 0; i < nLen; i++)
183+
for (; i < nLen; i++)
183184
{
184185
if ('/' == lpszMsgBuffer[i])
185186
{
@@ -211,6 +212,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer,
211212
APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
212213
return FALSE;
213214
}
215+
_tcscpy(pSt_StorageBucket->tszFileName, lpszMsgBuffer + i);
214216
return TRUE;
215217
}
216218
/********************************************************************

0 commit comments

Comments
 (0)