1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-07-12 13:38:50 +02:00

Don't cast DirEntry to Blob, actually look it up by offset

svn path=/trunk/; revision=696
This commit is contained in:
Colin Walters
2008-10-12 21:22:44 +00:00
parent a940cef8c7
commit 0103bf1fe3

@ -495,7 +495,7 @@ find_interface (gpointer key,
if (!BLOB_IS_REGISTERED_TYPE (entry)) if (!BLOB_IS_REGISTERED_TYPE (entry))
continue; continue;
blob = (RegisteredTypeBlob *)entry; blob = (RegisteredTypeBlob *)(&typelib->data[entry->offset]);
if (!blob->gtype_name) if (!blob->gtype_name)
continue; continue;