Commit b0db6cfd authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Alexandre Julliard

winedbg: Retrieve module architecture before sorting.

This should avoid getting i386 when the process really is x86_64, with just a single i386 module loaded. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56048
parent 54b8049d
......@@ -287,8 +287,8 @@ void info_win32_module(DWORD64 base, BOOL multi_machine)
if (!im.num_used) return;
qsort(im.modules, im.num_used, sizeof(im.modules[0]), module_compare);
machine = im.modules[0].mi.MachineType;
qsort(im.modules, im.num_used, sizeof(im.modules[0]), module_compare);
if (multi_machine)
dbg_printf("%-8s%-40s%-16s%-16sName (%d modules)\n", "Module", "Address", "Machine", "Debug info", im.num_used);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment