Skip to content

Commit c172aee

Browse files
committed
fixed:upload rewrite range pos is incorrent
1 parent 57eb170 commit c172aee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ BOOL CSession_UPStroage::Session_UPStroage_Insert(LPCTSTR lpszClientAddr, LPCTST
148148
Session_dwErrorCode = ERROR_STORAGE_MODULE_SESSION_OPENFILE;
149149
return FALSE;
150150
}
151+
//是不是覆写?
152+
if (st_Client.st_StorageInfo.ullRWLen > nPosStart)
153+
{
154+
//
155+
st_Client.st_StorageInfo.ullRWLen -= (nPostEnd - nPosStart);
156+
}
151157
fseek(st_Client.st_StorageInfo.pSt_File, nPosStart, SEEK_SET);
152158
}
153159
else

0 commit comments

Comments
 (0)