diff options
author | Zoltan Varga <vargaz@gmail.com> | 2009-04-28 22:11:37 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2009-04-28 22:11:37 +0400 |
commit | 0b0fe2059c0c8bd039f645e76d035fb344c93838 (patch) | |
tree | 5d08ba866ed9b96bbdac22fd6716c64aa1acce1f /libgc/misc.c | |
parent | 49e2e5e08986d5bc057ee7d9cdf2cded832a48a5 (diff) |
2009-04-28 Zoltan Varga <vargaz@gmail.com>
* misc.c (GC_init): Avoid casting an lvalue. Fixes part of #498692.
svn path=/trunk/mono/; revision=132874
Diffstat (limited to 'libgc/misc.c')
-rw-r--r-- | libgc/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgc/misc.c b/libgc/misc.c index be2555b8f2d..ee4348b2920 100644 --- a/libgc/misc.c +++ b/libgc/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); |