[ATL] Fixed atlcoll.h ignoring _ATL_NO_EXCEPTIONS
authorAlexander Shaposhnikov <sanchaez@reactos.org>
Sun, 10 Sep 2017 20:59:48 +0000 (20:59 +0000)
committerAlexander Shaposhnikov <sanchaez@reactos.org>
Sun, 10 Sep 2017 20:59:48 +0000 (20:59 +0000)
svn path=/branches/GSoC_2017/rapps/; revision=75823

reactos/sdk/lib/atl/atlcoll.h

index ad8c082..c8b0e7a 100644 (file)
@@ -3,7 +3,7 @@
 
 #pragma once
 #include "atlbase.h"
-
+#include "atlexcept.h"
 
 struct __POSITION
 {
@@ -531,7 +531,7 @@ typename CAtlList<E, ETraits>::CNode* CAtlList< E, ETraits>::GetFreeNode()
     CAtlPlex* Block = CAtlPlex::Create(m_Blocks, m_BlockSize, sizeof(CNode));
     if (Block == NULL)
     {
-        throw(E_OUTOFMEMORY);
+        AtlThrowImp(E_OUTOFMEMORY);
     }
     
     CNode* Node = (CNode*)Block->GetData();