fpexif: Fix file-not-found error when image is on One Drive for Business. See https://forum.lazarus.freepascal.org/index.php/topic,49564.msg359676.html

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7416 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-04-29 06:33:35 +00:00
parent 550cab40fc
commit 94067dff3d

View File

@ -353,7 +353,9 @@ procedure TImgInfo.LoadFromFile(const AFileName: String);
var
stream: TStream;
begin
if not FileExists(AFileName) then
if not FileExists(AFileName {$IF FPC_FullVersion >=30200}, false{$IFEND}) then
// false ---> Fix bug accessing image on OneDrive For Business
// https://forum.lazarus.freepascal.org/index.php/topic,49564.msg359676/topicseen.html
Error(Format(rsFileNotFoundError, [AFileName]));
FWarnings.Clear;