Browse Source

* 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 -

marco 5 years ago
parent
commit
98b1d2b975
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/win/systhrd.inc

+ 1 - 1
rtl/win/systhrd.inc

@@ -548,7 +548,7 @@ begin
   { Try to find TryEnterCriticalSection function }
   { Try to find TryEnterCriticalSection function }
   KernelHandle:=GetModuleHandle(KernelDLL);
   KernelHandle:=GetModuleHandle(KernelDLL);
   if KernelHandle<>0 then
   if KernelHandle<>0 then
-    WinTryEnterCriticalSection:=TTryEnterCriticalSection(GetProcAddress(KernelHandle,'TryEnterCriticalSection'));
+    WinTryEnterCriticalSection:=TTryEnterCriticalSection(WinGetProcAddress(KernelHandle,'TryEnterCriticalSection'));
   if not assigned(WinTryEnterCriticalSection) then
   if not assigned(WinTryEnterCriticalSection) then
     WinTryEnterCriticalSection:=@Win95TryEnterCriticalSection;
     WinTryEnterCriticalSection:=@Win95TryEnterCriticalSection;
 {$ENDIF SUPPORT_WIN95}
 {$ENDIF SUPPORT_WIN95}