Home | Info | Community | Development | myReactOS | Contact Us
[static]
Unload ICD.
Definition at line 427 of file opengl32.c.
Referenced by OPENGL32_UnloadICD().
{ BOOL allOk = TRUE; DBGPRINT( "Info: Unloading driver %ws...", icd->driver_name ); if (icd->refcount != 0) DBGPRINT( "Warning: ICD refcount = %d (should be 0)", icd->refcount ); /* unload dll */ if (!FreeLibrary( icd->handle )) { allOk = FALSE; DBGPRINT( "Warning: FreeLibrary on ICD %ws failed! (%d)", icd->dll, GetLastError() ); } /* free resources */ OPENGL32_RemoveICD( icd ); if (!HeapFree( GetProcessHeap(), 0, icd )) { allOk = FALSE; DBGPRINT( "Warning: HeapFree() returned FALSE, error code = %d", GetLastError() ); } return allOk; }