mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-04 19:39:40 +01:00
* initise result of SafeLoadLibrary for non-windows
git-svn-id: trunk@3775 -
This commit is contained in:
parent
e4fe73dcf8
commit
cb58ac7f18
@ -600,6 +600,8 @@ function SafeLoadLibrary(const FileName: AnsiString;
|
|||||||
{$endif}
|
{$endif}
|
||||||
{$if defined(windows) or defined(win32)}
|
{$if defined(windows) or defined(win32)}
|
||||||
Result:=LoadLibraryA(PChar(Filename));
|
Result:=LoadLibraryA(PChar(Filename));
|
||||||
|
{$else}
|
||||||
|
Result:=0;
|
||||||
{$endif}
|
{$endif}
|
||||||
finally
|
finally
|
||||||
{$if defined(cpui386) or defined(cpux86_64)}
|
{$if defined(cpui386) or defined(cpux86_64)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user