examples/ezusb: Fix error checking regression in recent commit

Commit 00454ab0 accidently botched error checking when replacing
rewind() with fseek().

Thanks to GitHub user "anotheruserofgithub" for noticing.

Closes #1539
This commit is contained in:
Sean McBride 2024-07-29 10:48:44 -04:00 committed by Tormod Volden
parent 4528752cbe
commit 30ec25f738
2 changed files with 2 additions and 2 deletions

View file

@ -816,7 +816,7 @@ int ezusb_load_ram(libusb_device_handle *device, const char *path, int fx_type,
/* at least write the interrupt vectors (at 0x0000) for reset! */
status = fseek(image, 0L, SEEK_SET);
if (ret < 0) {
if (status < 0) {
logerror("unable to rewind file %s\n", path);
ret = status;
goto exit;

View file

@ -1 +1 @@
#define LIBUSB_NANO 11932
#define LIBUSB_NANO 11933