summaryrefslogtreecommitdiff
path: root/frontends/riscos/content-handlers/sprite.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/riscos/content-handlers/sprite.c')
-rw-r--r--frontends/riscos/content-handlers/sprite.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/riscos/content-handlers/sprite.c b/frontends/riscos/content-handlers/sprite.c
index 650d8e9aa..704e5d6fe 100644
--- a/frontends/riscos/content-handlers/sprite.c
+++ b/frontends/riscos/content-handlers/sprite.c
@@ -126,7 +126,8 @@ bool sprite_convert(struct content *c)
/* check for bad data */
if ((int)source_size + 4 != area->used) {
- msg_data.error = messages_get("BadSprite");
+ msg_data.errordata.errorcode = NSERROR_UNKNOWN;
+ msg_data.errordata.errormsg = messages_get("BadSprite");
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
return false;
}
@@ -140,7 +141,8 @@ bool sprite_convert(struct content *c)
"xosspriteop_read_sprite_info: 0x%x: %s",
error->errnum,
error->errmess);
- msg_data.error = error->errmess;
+ msg_data.errordata.errorcode = NSERROR_UNKNOWN;
+ msg_data.errordata.errorcode = error->errmess;
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
return false;
}