From 18f8449802a0e745a3c760d307d0e316f90fef8c Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 28 Apr 2009 18:11:37 +0000 Subject: [PATCH] 2009-04-28 Zoltan Varga * misc.c (GC_init): Avoid casting an lvalue. Fixes part of #498692. svn path=/trunk/mono/; revision=132874 --- ChangeLog | 4 ++++ misc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c646b911..32553f19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-28 Zoltan Varga + + * misc.c (GC_init): Avoid casting an lvalue. Fixes part of #498692. + 2009-04-24 Kostyantyn Gushtin, Yevgen Kiruha, Serhiy Naumenko, Serhiy Stetskovych and Ian Dichkovsky diff --git a/misc.c b/misc.c index be2555b8..ee4348b2 100644 --- a/misc.c +++ b/misc.c @@ -479,7 +479,7 @@ void GC_init() BOOL (WINAPI *pfn) (LPCRITICAL_SECTION, DWORD) = NULL; HMODULE hK32 = GetModuleHandle(_T("kernel32.dll")); if (hK32) - (FARPROC) pfn = GetProcAddress(hK32, + pfn = GetProcAddress(hK32, "InitializeCriticalSectionAndSpinCount"); if (pfn) pfn(&GC_allocate_ml, 4000); -- 2.40.0