1
0
forked from 0ad/0ad

not freeing dll after manual import; allows delay load

This was SVN commit r458.
This commit is contained in:
janwas 2004-06-09 15:52:15 +00:00
parent f197601cbb
commit a0a9276b21

View File

@ -43,7 +43,7 @@ static int import_EnumDisplayDevices()
{
static HMODULE hUser32Dll = LoadLibrary("user32.dll");
*(void**)&pEnumDisplayDevicesA = GetProcAddress(hUser32Dll, "EnumDisplayDevicesA");
FreeLibrary(hUser32Dll);
// FreeLibrary(hUser32Dll);
// make sure the reference is released so BoundsChecker
// doesn't complain. it won't actually be unloaded anyway -
// there is at least one other reference.