mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 00:09:32 +02:00
* use wingetprocaddress instead of getprocaddress in code under SUPPORT_WIN95.
getprocaddress is meanwhile a "manager", and is not yet initialized here. git-svn-id: trunk@44777 -
This commit is contained in:
parent
fa4560c6ba
commit
98b1d2b975
@ -548,7 +548,7 @@ begin
|
||||
{ Try to find TryEnterCriticalSection function }
|
||||
KernelHandle:=GetModuleHandle(KernelDLL);
|
||||
if KernelHandle<>0 then
|
||||
WinTryEnterCriticalSection:=TTryEnterCriticalSection(GetProcAddress(KernelHandle,'TryEnterCriticalSection'));
|
||||
WinTryEnterCriticalSection:=TTryEnterCriticalSection(WinGetProcAddress(KernelHandle,'TryEnterCriticalSection'));
|
||||
if not assigned(WinTryEnterCriticalSection) then
|
||||
WinTryEnterCriticalSection:=@Win95TryEnterCriticalSection;
|
||||
{$ENDIF SUPPORT_WIN95}
|
||||
|
Loading…
Reference in New Issue
Block a user