mirror of
https://github.com/libusb/libusb
synced 2024-11-21 14:29:12 -07:00
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:
parent
4528752cbe
commit
30ec25f738
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -1 +1 @@
|
|||
#define LIBUSB_NANO 11932
|
||||
#define LIBUSB_NANO 11933
|
||||
|
|
Loading…
Reference in a new issue