Previous 199869 Revisions Next

r20104 Sunday 6th January, 2013 at 14:19:32 UTC by Oliver Stöneberg
improved some error messages (nw)
[src/lib/util]chdcd.c

trunk/src/lib/util/chdcd.c
r20103r20104
164164   if (offset < 4)
165165   {
166166      osd_close(file);
167      printf("ERROR: unexpected offset %lu (%s)\n", actual, filename);
167      printf("ERROR: unexpected RIFF offset %lu (%s)\n", actual, filename);
168168      return 0;
169169   }
170170   if (memcmp(&buf[0], "RIFF", 4) != 0)
r20103r20104
180180   if (offset < 8)
181181   {
182182      osd_close(file);
183      printf("ERROR: unexpected offset %lu (%s)\n", actual, filename);
183      printf("ERROR: unexpected size offset %lu (%s)\n", actual, filename);
184184      return 0;
185185   }
186186   filesize = LITTLE_ENDIANIZE_INT32(filesize);
r20103r20104
191191   if (offset < 12)
192192   {
193193      osd_close(file);
194      printf("ERROR: unexpected offset %lu (%s)\n", actual, filename);
194      printf("ERROR: unexpected WAVE offset %lu (%s)\n", actual, filename);
195195      return 0;
196196   }
197197   if (memcmp(&buf[0], "WAVE", 4) != 0)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team