* Capture result in SafeLoadLibrary

git-svn-id: trunk@37050 -
This commit is contained in:
michael 2017-08-24 09:27:49 +00:00
parent b6700f68b8
commit a4c4ce1764

View File

@ -709,16 +709,16 @@ var
mode : DWord;
begin
mode:=SetErrorMode(ErrorMode);
try
System.SafeLoadLibrary(FileName);
finally
SetErrorMode(mode);
end;
mode:=SetErrorMode(ErrorMode);
try
Result:=System.SafeLoadLibrary(FileName);
finally
SetErrorMode(mode);
end;
end;
{$else}
begin
System.SafeLoadLibrary(FileName);
Result:=System.SafeLoadLibrary(FileName);
end;
{$endif}