Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 114 of file main.c.
Referenced by ddraw_surface_wined3d_object_destroyed(), IDirect3DDeviceImpl_1_DeleteMatrix(), IDirect3DDeviceImpl_7_DeleteStateBlock(), and IDirect3DMaterialImpl_Release().
{ struct ddraw_handle_entry *entry; void *object; if (handle == DDRAW_INVALID_HANDLE || handle >= t->entry_count) { WARN("Invalid handle %#x passed.\n", handle); return NULL; } entry = &t->entries[handle]; if (entry->type != type) { WARN("Handle %#x (%p) is not of type %#x.\n", handle, entry->object, type); return NULL; } object = entry->object; entry->object = t->free_entries; entry->type = DDRAW_HANDLE_FREE; t->free_entries = entry; return object; }