diff --git a/common/Handle.cpp b/common/Handle.cpp index f12499b..e439751 100644 --- a/common/Handle.cpp +++ b/common/Handle.cpp @@ -3,8 +3,9 @@ #include HOBJECT HandleCreate(CHandleObject* ptr) { - STORM_ASSERT(ptr); - STORM_VALIDATE(ptr, ERROR_INVALID_PARAMETER, nullptr); + STORM_VALIDATE_BEGIN; + STORM_VALIDATE(ptr); + STORM_VALIDATE_END; ptr->m_refcount++; return reinterpret_cast(ptr);