Commit cabee39f authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Free the Win16 dummy module and wm->deps.

parent 8c538c81
......@@ -124,6 +124,7 @@ typedef struct _wine_modref
struct _wine_modref *next;
struct _wine_modref *prev;
HMODULE module;
HMODULE16 hDummyMod; /* Win16 dummy module */
void *dlhandle; /* handle returned by dlopen() */
int tlsindex; /* TLS index or -1 if none */
......
......@@ -773,7 +773,7 @@ HINSTANCE16 WINAPI WinExec16( LPCSTR lpCmdLine, UINT16 nCmdShow )
cmdline[0] = cmdline[1] = 0;
}
TRACE("name: %s, cmdline: %.*s\n", name, cmdline[0], &cmdline[1]);
TRACE("name: '%s', cmdline: '%.*s'\n", name, cmdline[0], &cmdline[1]);
if (SearchPathA( NULL, name, ".exe", sizeof(buffer), buffer, NULL ))
{
......@@ -1500,6 +1500,8 @@ static void MODULE_FlushModrefs(void)
TRACE(" unloading %s\n", wm->filename);
/* VirtualFree( (LPVOID)wm->module, 0, MEM_RELEASE ); */ /* FIXME */
/* if (wm->dlhandle) dlclose( wm->dlhandle ); */ /* FIXME */
FreeLibrary16(wm->hDummyMod);
HeapFree( GetProcessHeap(), 0, wm->deps );
HeapFree( GetProcessHeap(), 0, wm->filename );
HeapFree( GetProcessHeap(), 0, wm->short_filename );
HeapFree( GetProcessHeap(), 0, wm );
......
......@@ -620,6 +620,7 @@ WINE_MODREF *PE_CreateModule( HMODULE hModule, LPCSTR filename, DWORD flags,
FreeLibrary16( hModule16 );
return NULL;
}
wm->hDummyMod = hModule16;
if ( builtin )
{
......
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