[WINESYNC] dbghelp: Remove unused code in module_find_cb.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id 8d702a3aa54fc61bd146f584e66364a12a0ee3a0 by Jacek Caban <jacek@codeweavers.com>
This commit is contained in:
winesync 2020-09-11 18:39:25 +02:00 committed by Jérôme Gardou
parent e0db46fa2e
commit 31d5e64eb8
2 changed files with 2 additions and 26 deletions

View file

@ -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;

View file

@ -4,4 +4,4 @@ files:
include/dbghelp.h: sdk/include/psdk/dbghelp.h
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
tags:
wine: e3354e44f17d74f0ac4547d8a4494c83ea3d6d37
wine: 8d702a3aa54fc61bd146f584e66364a12a0ee3a0