Commit 4fd8cc37 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Implemented PE_UnloadLibrary().

parent 7938aaba
......@@ -930,7 +930,12 @@ WINE_MODREF *PE_LoadLibraryExA (LPCSTR name, DWORD flags, DWORD *err)
*/
void PE_UnloadLibrary(WINE_MODREF *wm)
{
/* FIXME, do something here */
DWORD vma_size = calc_vma_size( wm->module );
VirtualFree( (LPVOID)wm->module, vma_size, MEM_RELEASE );
HeapFree( GetProcessHeap(), 0, wm->filename );
HeapFree( GetProcessHeap(), 0, wm->short_filename );
HeapFree( GetProcessHeap(), 0, wm );
}
/*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment