summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libr-icons.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libr-icons.c b/src/libr-icons.c
index 18dc536..acceac8 100644
--- a/src/libr-icons.c
+++ b/src/libr-icons.c
@@ -542,6 +542,7 @@ EXPORT_FN int libr_icon_setuuid(libr_file *handle, char *guid)
memcpy(&(icons.buffer[OFFSET_ENTRIES]), &entries, sizeof(uint32_t));
}
/* Set the GUID and write the resource */
+ memcpy(&(icons.buffer[OFFSET_GUID]), &id, sizeof(UUID));
if(!libr_write(handle, ICON_SECTION, icons.buffer, icons.size, LIBR_UNCOMPRESSED, LIBR_OVERWRITE))
{
/* failed to write icon resource */