Advertisement
expired6978

Untitled

Aug 4th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. void * UnpackHandle(VMValue * src, UInt32 typeID)
  2. {
  3. if(!src->IsIdentifier()) return NULL;
  4. if(!src->data.id) return NULL;
  5.  
  6. UInt64 handle = src->data.id->GetHandle();
  7.  
  8. if(!(*g_objectHandlePolicy)->IsType(typeID, handle)) return NULL;
  9. if(!(*g_objectHandlePolicy)->Unk_02(handle)) return NULL;
  10.  
  11. return (*g_objectHandlePolicy)->Resolve(typeID, handle);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement