Skip to content

Commit 868e129

Browse files
committed
fixed:crashed when upfile
1 parent 11e64e4 commit 868e129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ BOOL CSession_UPStroage::Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTST
138138
{
139139
struct _tstat64 st_FStat;
140140
memset(&st_FStat, '\0', sizeof(struct _tstat64));
141-
_tstat64(stl_MapIterator->second.st_StorageInfo.tszFileDir, &st_FStat);
142-
stl_MapIterator->second.st_StorageInfo.ullRWLen = st_FStat.st_size;
141+
_tstat64(st_Client.st_StorageInfo.tszFileDir, &st_FStat);
142+
st_Client.st_StorageInfo.ullRWLen = st_FStat.st_size;
143143

144144
st_Client.st_StorageInfo.pSt_File = _tfopen(lpszFileDir, _T("rb+"));
145145
if (NULL == st_Client.st_StorageInfo.pSt_File)

0 commit comments

Comments
 (0)