mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 20:30:26 +02:00
* Capture result in SafeLoadLibrary
git-svn-id: trunk@37050 -
This commit is contained in:
parent
b6700f68b8
commit
a4c4ce1764
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user