gobject-introspection r696 - trunk/girepository
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r696 - trunk/girepository
- Date: Sun, 12 Oct 2008 21:22:44 +0000 (UTC)
Author: walters
Date: Sun Oct 12 21:22:44 2008
New Revision: 696
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=696&view=rev
Log:
Don't cast DirEntry to Blob, actually look it up by offset
Modified:
trunk/girepository/girepository.c
Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c (original)
+++ trunk/girepository/girepository.c Sun Oct 12 21:22:44 2008
@@ -495,7 +495,7 @@
if (!BLOB_IS_REGISTERED_TYPE (entry))
continue;
- blob = (RegisteredTypeBlob *)entry;
+ blob = (RegisteredTypeBlob *)(&typelib->data[entry->offset]);
if (!blob->gtype_name)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]