mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Don't cast DirEntry to Blob, actually look it up by offset
svn path=/trunk/; revision=696
This commit is contained in:
parent
a940cef8c7
commit
0103bf1fe3
@ -495,7 +495,7 @@ find_interface (gpointer key,
|
||||
if (!BLOB_IS_REGISTERED_TYPE (entry))
|
||||
continue;
|
||||
|
||||
blob = (RegisteredTypeBlob *)entry;
|
||||
blob = (RegisteredTypeBlob *)(&typelib->data[entry->offset]);
|
||||
if (!blob->gtype_name)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user