@@ -54,7 +54,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<string>* pStl_Lis
5454
5555 if (!pStl_ListAddr->empty ())
5656 {
57- APIHelp_IsErrorOccur = TRUE ;
57+ APIHelp_IsErrorOccur = true ;
5858 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_PARAMENT;
5959 return FALSE ;
6060 }
@@ -73,7 +73,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<string>* pStl_Lis
7373 {
7474 if (xhToken == i)
7575 {
76- bFound = TRUE ;
76+ bFound = true ;
7777 _tcscpy (ptszAddr, stl_ListIterator->c_str ());
7878 break ;
7979 }
@@ -90,7 +90,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<string>* pStl_Lis
9090 {
9191 if (nRandomFront == i)
9292 {
93- bFound = TRUE ;
93+ bFound = true ;
9494 _tcscpy (ptszAddr, stl_ListIterator->c_str ());
9595 break ;
9696 }
@@ -107,7 +107,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<string>* pStl_Lis
107107 {
108108 if (nRandomBack == i)
109109 {
110- bFound = TRUE ;
110+ bFound = true ;
111111 _tcscpy (ptszAddr, stl_ListIterator->c_str ());
112112 break ;
113113 }
@@ -116,11 +116,11 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_RandomAddr(list<string>* pStl_Lis
116116
117117 if (!bFound)
118118 {
119- APIHelp_IsErrorOccur = TRUE ;
119+ APIHelp_IsErrorOccur = true ;
120120 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
121121 return FALSE ;
122122 }
123- return TRUE ;
123+ return true ;
124124}
125125/* *******************************************************************
126126函数名称:APIHelp_Distributed_FileList
@@ -151,7 +151,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_FileList(list<APIHELP_LBFILEINFO>
151151
152152 if ((NULL == pStl_ListParse) || (NULL == pppSt_ListPacket))
153153 {
154- APIHelp_IsErrorOccur = TRUE ;
154+ APIHelp_IsErrorOccur = true ;
155155 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_PARAMENT;
156156 return FALSE ;
157157 }
@@ -163,7 +163,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_FileList(list<APIHELP_LBFILEINFO>
163163 APIHelp_Distributed_FileListParse (stl_ListIterator->tszMsgBuffer , stl_ListIterator->nMsgLen , (*pppSt_ListPacket)[i]);
164164 }
165165 *pInt_ListCount = pStl_ListParse->size ();
166- return TRUE ;
166+ return true ;
167167}
168168/* *******************************************************************
169169函数名称:APIHelp_Distributed_DLStorage
@@ -194,7 +194,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer,
194194
195195 if ((NULL == lpszMsgBuffer) || (NULL == pSt_StorageBucket))
196196 {
197- APIHelp_IsErrorOccur = TRUE ;
197+ APIHelp_IsErrorOccur = true ;
198198 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_PARAMENT;
199199 return FALSE ;
200200 }
@@ -208,14 +208,14 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer,
208208 {
209209 if (' /' == lpszMsgBuffer[i])
210210 {
211- bFound = TRUE ;
211+ bFound = true ;
212212 memcpy (tszKeyStr, lpszMsgBuffer + 1 , i - 1 );
213213 break ;
214214 }
215215 }
216216 if (!bFound)
217217 {
218- APIHelp_IsErrorOccur = TRUE ;
218+ APIHelp_IsErrorOccur = true ;
219219 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
220220 return FALSE ;
221221 }
@@ -225,19 +225,19 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_DLStorage(LPCTSTR lpszMsgBuffer,
225225 {
226226 if (0 == _tcsncmp (tszKeyStr, stl_ListIterator->tszBuckKey , _tcslen (tszKeyStr)))
227227 {
228- bFound = TRUE ;
228+ bFound = true ;
229229 *pSt_StorageBucket = *stl_ListIterator;
230230 break ;
231231 }
232232 }
233233 if (!bFound)
234234 {
235- APIHelp_IsErrorOccur = TRUE ;
235+ APIHelp_IsErrorOccur = true ;
236236 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
237237 return FALSE ;
238238 }
239239 _tcscpy (pSt_StorageBucket->tszFileName , lpszMsgBuffer + i);
240- return TRUE ;
240+ return true ;
241241}
242242/* *******************************************************************
243243函数名称:APIHelp_Distributed_UPStorage
@@ -268,7 +268,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
268268
269269 if ((NULL == pStl_ListBucket) || (NULL == pSt_StorageBucket))
270270 {
271- APIHelp_IsErrorOccur = TRUE ;
271+ APIHelp_IsErrorOccur = true ;
272272 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_PARAMENT;
273273 return FALSE ;
274274 }
@@ -281,14 +281,14 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
281281 {
282282 if (0 == _tcsnicmp (pSt_StorageBucket->tszBuckKey , stl_ListIterator->tszBuckKey , _tcslen (pSt_StorageBucket->tszBuckKey )))
283283 {
284- bFound = TRUE ;
284+ bFound = true ;
285285 *pSt_StorageBucket = *stl_ListIterator;
286286 break ;
287287 }
288288 }
289289 if (!bFound)
290290 {
291- APIHelp_IsErrorOccur = TRUE ;
291+ APIHelp_IsErrorOccur = true ;
292292 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
293293 return FALSE ;
294294 }
@@ -340,7 +340,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
340340 _tcscat (tszFilePath, _T (" /*" ));
341341 }
342342 }
343- SystemApi_File_EnumFile (tszFilePath, &ppListFile, &nListCount, NULL , NULL , TRUE , 1 );
343+ SystemApi_File_EnumFile (tszFilePath, &ppListFile, &nListCount, NULL , NULL , true , 1 );
344344 for (int j = 0 ; j < nListCount; j++)
345345 {
346346 struct _tstat64 st_FStat;
@@ -360,7 +360,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
360360 // 通过指定模式获得一个key
361361 if (stl_BuckSelect.empty ())
362362 {
363- APIHelp_IsErrorOccur = TRUE ;
363+ APIHelp_IsErrorOccur = true ;
364364 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
365365 return FALSE ;
366366 }
@@ -379,7 +379,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
379379 {
380380 if (xhToken == i)
381381 {
382- bFound = TRUE ;
382+ bFound = true ;
383383 *pSt_StorageBucket = *stl_ListIterator;
384384 break ;
385385 }
@@ -396,7 +396,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
396396 {
397397 if (nUPFront == i)
398398 {
399- bFound = TRUE ;
399+ bFound = true ;
400400 *pSt_StorageBucket = *stl_ListIterator;
401401 break ;
402402 }
@@ -413,7 +413,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
413413 {
414414 if (nUPBack == i)
415415 {
416- bFound = TRUE ;
416+ bFound = true ;
417417 *pSt_StorageBucket = *stl_ListIterator;
418418 break ;
419419 }
@@ -422,13 +422,13 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_UPStorage(list<XENGINE_STORAGEBUC
422422
423423 if (!bFound)
424424 {
425- APIHelp_IsErrorOccur = TRUE ;
425+ APIHelp_IsErrorOccur = true ;
426426 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
427427 return FALSE ;
428428 }
429429 }
430430
431- return TRUE ;
431+ return true ;
432432}
433433/* *******************************************************************
434434函数名称:APIHelp_Distributed_GetPathKey
@@ -459,7 +459,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_GetPathKey(list<XENGINE_STORAGEBU
459459
460460 if ((NULL == pStl_ListBucket) || (NULL == lpszBuckKey) || (NULL == ptszFilePath))
461461 {
462- APIHelp_IsErrorOccur = TRUE ;
462+ APIHelp_IsErrorOccur = true ;
463463 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_PARAMENT;
464464 return FALSE ;
465465 }
@@ -469,17 +469,17 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_GetPathKey(list<XENGINE_STORAGEBU
469469 if (0 == _tcsncmp (lpszBuckKey, stl_ListIterator->tszBuckKey , _tcslen (lpszBuckKey)))
470470 {
471471 _tcscpy (ptszFilePath, stl_ListIterator->tszFilePath );
472- bFound = TRUE ;
472+ bFound = true ;
473473 break ;
474474 }
475475 }
476476 if (!bFound)
477477 {
478- APIHelp_IsErrorOccur = TRUE ;
478+ APIHelp_IsErrorOccur = true ;
479479 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_NOTFOUND;
480480 return FALSE ;
481481 }
482- return TRUE ;
482+ return true ;
483483}
484484// ////////////////////////////////////////////////////////////////////////
485485// 保护函数
@@ -518,7 +518,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_FileListParse(LPCTSTR lpszMsgBuff
518518 std::unique_ptr<Json::CharReader> const pSt_JsonReader (st_JsonBuilder.newCharReader ());
519519 if (!pSt_JsonReader->parse (lpszMsgBuffer, lpszMsgBuffer + nMsgLen, &st_JsonRoot, &st_JsonError))
520520 {
521- APIHelp_IsErrorOccur = TRUE ;
521+ APIHelp_IsErrorOccur = true ;
522522 APIHelp_dwErrorCode = ERROR_STORAGE_MODULE_APIHELP_PARSE;
523523 return FALSE ;
524524 }
@@ -539,7 +539,7 @@ BOOL CAPIHelp_Distributed::APIHelp_Distributed_FileListParse(LPCTSTR lpszMsgBuff
539539
540540 break ;
541541 }
542- return TRUE ;
542+ return true ;
543543}
544544/* *******************************************************************
545545函数名称:APIHelp_Distributed_GetSize
0 commit comments