* dll_init.h (struct dll): Re-add modname.

* dll_init.cc: Throughout, use modname where it was used before.
	(dll_list::operator[]): Use modname.  Move comment from dll_list::alloc
	here and remove hint about GetModuleBaseNameW.
	(dll_list::alloc): Store full path in name, pointer to basename in
	modname.  Search dll using modname.
This commit is contained in:
Corinna Vinschen
2012-02-09 14:41:21 +00:00
parent e59d6a1469
commit 9eba4de269
3 changed files with 36 additions and 28 deletions

View File

@ -56,6 +56,7 @@ struct dll
dll** deps;
DWORD image_size;
void* preferred_base;
PWCHAR modname;
WCHAR name[1];
void detach ();
int init ();