dbghelp: Renamed pe_load_module (resp pe_load_module_from_pcs)
to pe_load_native_module (resp pe_load_builtin_module) to better describe what those functions actually do.
This commit is contained in:
parent
a6fd78d9a3
commit
9a0e666733
|
@ -478,10 +478,10 @@ extern BOOL pdb_fetch_file_info(struct pdb_lookup* pdb_lookup);
|
|||
/* pe_module.c */
|
||||
extern BOOL pe_load_nt_header(HANDLE hProc, DWORD base, IMAGE_NT_HEADERS* nth);
|
||||
extern struct module*
|
||||
pe_load_module(struct process* pcs, const WCHAR* name,
|
||||
pe_load_native_module(struct process* pcs, const WCHAR* name,
|
||||
HANDLE hFile, DWORD base, DWORD size);
|
||||
extern struct module*
|
||||
pe_load_module_from_pcs(struct process* pcs, const WCHAR* name,
|
||||
pe_load_builtin_module(struct process* pcs, const WCHAR* name,
|
||||
DWORD base, DWORD size);
|
||||
extern BOOL pe_load_debug_info(const struct process* pcs,
|
||||
struct module* module);
|
||||
|
|
|
@ -524,13 +524,13 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
|
|||
if (!module && module_is_elf_container_loaded(pcs, wImageName, BaseOfDll))
|
||||
{
|
||||
/* force the loading of DLL as builtin */
|
||||
module = pe_load_module_from_pcs(pcs, wImageName, BaseOfDll, SizeOfDll);
|
||||
module = pe_load_builtin_module(pcs, wImageName, BaseOfDll, SizeOfDll);
|
||||
}
|
||||
}
|
||||
if (!module)
|
||||
{
|
||||
/* otherwise, try a regular PE module */
|
||||
if (!(module = pe_load_module(pcs, wImageName, hFile, BaseOfDll, SizeOfDll)))
|
||||
if (!(module = pe_load_native_module(pcs, wImageName, hFile, BaseOfDll, SizeOfDll)))
|
||||
{
|
||||
/* and finally and ELF module */
|
||||
if (module_get_type_by_name(wImageName) == DMT_ELF)
|
||||
|
|
|
@ -320,10 +320,10 @@ BOOL pe_load_debug_info(const struct process* pcs, struct module* module)
|
|||
}
|
||||
|
||||
/******************************************************************
|
||||
* pe_load_module
|
||||
* pe_load_native_module
|
||||
*
|
||||
*/
|
||||
struct module* pe_load_module(struct process* pcs, const WCHAR* name,
|
||||
struct module* pe_load_native_module(struct process* pcs, const WCHAR* name,
|
||||
HANDLE hFile, DWORD base, DWORD size)
|
||||
{
|
||||
struct module* module = NULL;
|
||||
|
@ -394,10 +394,10 @@ BOOL pe_load_nt_header(HANDLE hProc, DWORD base, IMAGE_NT_HEADERS* nth)
|
|||
}
|
||||
|
||||
/******************************************************************
|
||||
* pe_load_module_from_pcs
|
||||
* pe_load_builtin_module
|
||||
*
|
||||
*/
|
||||
struct module* pe_load_module_from_pcs(struct process* pcs, const WCHAR* name,
|
||||
struct module* pe_load_builtin_module(struct process* pcs, const WCHAR* name,
|
||||
DWORD base, DWORD size)
|
||||
{
|
||||
struct module* module = NULL;
|
||||
|
|
Loading…
Reference in New Issue