Index: /trunk/include/iprt/mem.h
===================================================================
--- /trunk/include/iprt/mem.h	(revision 55949)
+++ /trunk/include/iprt/mem.h	(revision 55950)
@@ -752,7 +752,7 @@
         { \
             void *pv = RTMemEfAlloc(cb, RTMEM_TAG, RT_SRC_POS); \
-            if (RT_UNLIKELY(!pv)) \
-                throw std::bad_alloc(); \
-            return pv; \
+            if (RT_LIKELY(pv)) \
+                return pv; \
+            throw std::bad_alloc(); \
         } \
         void *operator new(size_t cb, const std::nothrow_t &nothrow_constant) RT_NO_THROW \
@@ -764,7 +764,7 @@
         { \
             void *pv = RTMemEfAlloc(cb, RTMEM_TAG, RT_SRC_POS); \
-            if (RT_UNLIKELY(!pv)) \
-                throw std::bad_alloc(); \
-            return pv; \
+            if (RT_LIKELY(pv)) \
+                return pv; \
+            throw std::bad_alloc(); \
         } \
         void *operator new[](size_t cb, const std::nothrow_t &nothrow_constant) RT_NO_THROW \
