We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 636a01d + e338305 commit 14146d7Copy full SHA for 14146d7
1 file changed
XEngine_Source/StorageModule_BTorrent/BTorrent_Parse/BTorrent_Parse.cpp
@@ -1,5 +1,6 @@
1
#include "pch.h"
2
#include "BTorrent_Parse.h"
3
+#include <new>
4
/********************************************************************
5
// Created: 2023/02/02 16:26:41
6
// File Name: D:\XEngine\XEngine_SourceCode\XEngine_NetHelp\NetHelp_BTorrent\BTorrent_Parse\BTorrent_Parse.cpp
@@ -44,7 +45,7 @@ XHANDLE CBTorrent_Parse::BTorrent_Parse_Init(LPCXSTR lpszAddr)
44
45
return NULL;
46
}
47
//申请空间
- BTORRENT_PARSEINFO* pSt_BTParse = new BTORRENT_PARSEINFO;
48
+ BTORRENT_PARSEINFO* pSt_BTParse = new (std::nothrow) BTORRENT_PARSEINFO;
49
if (NULL == pSt_BTParse)
50
{
51
BTDload_IsErrorOccur = true;
0 commit comments