dbghelp: Report in module's info when a module's debug information has been mismatched (dbg and pdb only).
diff --git a/dlls/dbghelp/path.c b/dlls/dbghelp/path.c
index 3ae4921..e0cfc97 100644
--- a/dlls/dbghelp/path.c
+++ b/dlls/dbghelp/path.c
@@ -612,7 +612,8 @@
}
BOOL path_find_symbol_file(const struct process* pcs, PCSTR full_path,
- const GUID* guid, DWORD dw1, DWORD dw2, PSTR buffer)
+ const GUID* guid, DWORD dw1, DWORD dw2, PSTR buffer,
+ BOOL* is_unmatched)
{
struct module_find mf;
WCHAR full_pathW[MAX_PATH];
@@ -632,6 +633,7 @@
MultiByteToWideChar(CP_ACP, 0, full_path, -1, full_pathW, MAX_PATH);
filename = file_nameW(full_pathW);
mf.kind = module_get_type_by_name(filename);
+ *is_unmatched = FALSE;
/* first check full path to file */
if (module_find_cb(full_pathW, &mf))
@@ -665,6 +667,7 @@
if ((dbghelp_options & SYMOPT_LOAD_ANYTHING) && mf.matched)
{
WideCharToMultiByte(CP_ACP, 0, mf.filename, -1, buffer, MAX_PATH, NULL, NULL);
+ *is_unmatched = TRUE;
return TRUE;
}
return FALSE;