diff --git a/source/lib/res.cpp b/source/lib/res.cpp index 50c913561a..55b049289a 100755 --- a/source/lib/res.cpp +++ b/source/lib/res.cpp @@ -265,6 +265,10 @@ Handle h_alloc(const u32 key, const uint type, /*const size_t user_size,*/ DTOR return 0; } hd->refs++; + + if(puser) + *puser = hd; + return h; } }