mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
plugin windows_lnk: fix missing return-on-error
(found by peachy & clang's static analyzer) Change-Id: Idcc9b3bd0c3c1164892002b8f814d74b4a6b2a2d
This commit is contained in:
parent
4fa57d7661
commit
443ad25e75
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ static bool extract_link_destination(const int fd,
|
|||
if (*link_flags & HAS_RELATIVE_PATH) {
|
||||
int ccount;
|
||||
r = read_word(fd, &ccount);
|
||||
if (!r) return false;
|
||||
if (*link_flags & IS_UNICODE) {
|
||||
unsigned char utf16[4], utf8[10];
|
||||
link_target[0] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue