Skip to content

Commit 28b7f79

Browse files
committed
modify:does not use BaseLib_OperatorString_GetLastString fuinction
1 parent 3db5720 commit 28b7f79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

XEngine_Source/StorageModule_APIHelp/APIHelp_Distributed/APIHelp_Distributed.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ __int64u CAPIHelp_Distributed::APIHelp_Distributed_GetSize(LPCTSTR lpszMsgBuffer
555555
memset(tszUnitStr, '\0', sizeof(tszUnitStr));
556556
//分别得到数字和单位
557557
memcpy(tszSizeStr, lpszMsgBuffer, _tcslen(lpszMsgBuffer) - 2);
558-
BaseLib_OperatorString_GetLastString(lpszMsgBuffer, 2, tszUnitStr);
558+
tszUnitStr[0] = lpszMsgBuffer[_tcslen(lpszMsgBuffer) - 2];
559+
tszUnitStr[1] = lpszMsgBuffer[_tcslen(lpszMsgBuffer) - 1];
559560

560561
__int64u nllSize = _ttoi64(tszSizeStr);
561562
//得到单位大小

0 commit comments

Comments
 (0)