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

View File

@ -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;