From 9039ff45c54720892c634e8e537060ee914a2f57 Mon Sep 17 00:00:00 2001 From: superp00t Date: Mon, 31 Mar 2025 20:17:33 -0400 Subject: [PATCH] fix(handle): update with new STORM_VALIDATE macro --- common/Handle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);