plugin windows_lnk: fix missing return-on-error

(found by peachy & clang's static analyzer)

Change-Id: Idcc9b3bd0c3c1164892002b8f814d74b4a6b2a2d
This commit is contained in:
Sebastian Leonhardt 2020-06-30 18:05:26 +02:00 committed by Solomon Peachy
parent 4fa57d7661
commit 443ad25e75

View file

@ -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';