https://git.reactos.org/?p=reactos.git;a=commitdiff;h=31d5e64eb89e6ce8305bc…
commit 31d5e64eb89e6ce8305bc940a3441b26507617fb
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Fri Sep 11 18:39:25 2020 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Sep 16 10:35:50 2020 +0200
[WINESYNC] dbghelp: Remove unused code in module_find_cb.
Signed-off-by: Jacek Caban <jacek(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 8d702a3aa54fc61bd146f584e66364a12a0ee3a0 by Jacek Caban
<jacek(a)codeweavers.com>
---
dll/win32/dbghelp/path.c | 26 +-------------------------
sdk/tools/winesync/dbghelp.cfg | 2 +-
2 files changed, 2 insertions(+), 26 deletions(-)
diff --git a/dll/win32/dbghelp/path.c b/dll/win32/dbghelp/path.c
index 4e7354f93ad..d404e483ae1 100644
--- a/dll/win32/dbghelp/path.c
+++ b/dll/win32/dbghelp/path.c
@@ -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;
diff --git a/sdk/tools/winesync/dbghelp.cfg b/sdk/tools/winesync/dbghelp.cfg
index 323dc44f9fa..60e8ae6e85e 100644
--- a/sdk/tools/winesync/dbghelp.cfg
+++ b/sdk/tools/winesync/dbghelp.cfg
@@ -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