dbghelp: Remove unused code in module_find_cb.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
875b0c40a9
commit
8d702a3aa5
|
@ -474,7 +474,7 @@ struct module_find
|
|||
static BOOL CALLBACK module_find_cb(PCWSTR buffer, PVOID user)
|
||||
{
|
||||
struct module_find* mf = user;
|
||||
DWORD size, checksum, timestamp;
|
||||
DWORD size, timestamp;
|
||||
unsigned matched = 0;
|
||||
|
||||
/* the matching weights:
|
||||
|
@ -524,30 +524,6 @@ static BOOL CALLBACK module_find_cb(PCWSTR buffer, PVOID user)
|
|||
if (timestamp == mf->dw1 && size == mf->dw2) matched++;
|
||||
}
|
||||
break;
|
||||
case DMT_MACHO:
|
||||
case DMT_ELF:
|
||||
{
|
||||
HANDLE file;
|
||||
|
||||
file = CreateFileW(buffer, GENERIC_READ, FILE_SHARE_READ, NULL,
|
||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (file == INVALID_HANDLE_VALUE) break;
|
||||
|
||||
checksum = calc_crc32(file);
|
||||
if (checksum == mf->dw1) matched += 2;
|
||||
else
|
||||
{
|
||||
struct image_file_map fmap;
|
||||
WARN("Found %s, but wrong checksums: %08x %08x\n", debugstr_w(buffer), checksum, mf->dw1);
|
||||
if (elf_map_handle(file, &fmap)) /* FIXME: validate macho files */
|
||||
{
|
||||
image_unmap_file(&fmap);
|
||||
matched++;
|
||||
}
|
||||
}
|
||||
CloseHandle(file);
|
||||
}
|
||||
break;
|
||||
case DMT_PDB:
|
||||
{
|
||||
struct pdb_lookup pdb_lookup;
|
||||
|
|
Loading…
Reference in New Issue