Cast third parameter of elf_search_and_load_file() to proper type.

This commit is contained in:
Gerald Pfeifer 2004-04-07 19:06:10 +00:00 committed by Alexandre Julliard
parent 8e106f2f7b
commit cd69b118c2

View File

@ -512,7 +512,8 @@ BOOL elf_synchronize_module_list(struct process* pcs)
read_mem(pcs->handle, (ULONG)lm.l_name, bufstr, sizeof(bufstr))) read_mem(pcs->handle, (ULONG)lm.l_name, bufstr, sizeof(bufstr)))
{ {
bufstr[sizeof(bufstr) - 1] = '\0'; bufstr[sizeof(bufstr) - 1] = '\0';
elf_search_and_load_file(pcs, bufstr, lm.l_addr, &elf_info); elf_search_and_load_file(pcs, bufstr, (unsigned long)lm.l_addr,
&elf_info);
} }
} }
@ -604,7 +605,8 @@ struct module* elf_load_module(struct process* pcs, const char* name)
if (!p++) p = bufstr; if (!p++) p = bufstr;
if (!memcmp(p, xname, strlen(xname))) if (!memcmp(p, xname, strlen(xname)))
{ {
sym_type = elf_search_and_load_file(pcs, bufstr, lm.l_addr, &elf_info); sym_type = elf_search_and_load_file(pcs, bufstr,
(unsigned long)lm.l_addr, &elf_info);
break; break;
} }
} }