Fix yellow

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15409 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2007-11-02 14:20:44 +00:00
parent dcca586a9b
commit bfc870f07e

View file

@ -200,10 +200,11 @@ static int codec_load_ram(int size, struct codec_api *api)
return CODEC_ERROR; return CODEC_ERROR;
if (hdr == NULL if (hdr == NULL
|| hdr->magic != CODEC_MAGIC || (hdr->magic != CODEC_MAGIC
#ifdef HAVE_RECORDING #ifdef HAVE_RECORDING
&& hdr->magic != CODEC_ENC_MAGIC && hdr->magic != CODEC_ENC_MAGIC
#endif #endif
)
|| hdr->target_id != TARGET_ID) { || hdr->target_id != TARGET_ID) {
sim_codec_close(pd); sim_codec_close(pd);
return CODEC_ERROR; return CODEC_ERROR;