fpexif: Avoid raising an exception when IPTC is present but has zero length. Issue #38876.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8034 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz 2021-05-17 16:51:00 +00:00
parent e66195efeb
commit 1641eba327

View File

@ -274,7 +274,7 @@ var
begin
FImgInfo.IptcData.Clear;
if Length(ABuffer) = 0 then begin
Error(rsIptcDataExpected);
// IPTC block available but has zero length
exit;
end;