resources: compiler: Fix resources on big endian architectures
authorChristian Persch <chpe@gnome.org>
Mon, 9 Apr 2012 13:34:10 +0000 (15:34 +0200)
committerChristian Persch <chpe@gnome.org>
Mon, 16 Apr 2012 20:39:34 +0000 (22:39 +0200)
commit5ef34e5f11b4f71a66615b6506108ee540cc3420
tree8851941b9618e081dfdef2f584c6f9af35686665
parentcf619cffb77b6792f344b517bb4fc46afe0690f5
resources: compiler: Fix resources on big endian architectures

Resources are always little endian, so the gvdb is byteswapped. When looking
up the value, it would return a new byteswapped variant, making the data
returned from do_lookup() invalid once that variant is unref'd. Since
byteswapping doesn't matter for the "ay" data anyway, just use
gvdb_table_get_raw_value() instead and only byteswap the length and flag
values.

https://bugzilla.gnome.org/show_bug.cgi?id=673409
gio/gresource.c