dbghelp: Mimic native behavior for module name.
commit4f80a599b66c4f7ea0e35971c89672b64d9b0fa7
authorEric Pouech <epouech@codeweavers.com>
Wed, 17 Jan 2024 15:04:14 +0000 (17 16:04 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 6 Mar 2024 21:05:49 +0000 (6 22:05 +0100)
tree8d73b8490aeb9841fee77f2fae3a2696f5819619
parentd6d22677da3f60c6769a7a85897493772477207f
dbghelp: Mimic native behavior for module name.

Module names appear in three spots in dbghelp:
  A) SymGetModuleInfo() .ModuleName
  B) module enumeration (as parameter in callback)
  C) in symbol/type research in module!name form

Tests show that:
- A) and B) always use only the derivation of the image
  name, whatever the passed module name in SymLoadModule().
- C) can use either the form derived from image name
  {as A) and B)}, but also the passed module name in
  SymLoadModule().

Note: B) is limited to 64 characters, while A) is limited to 32
characters (not tested here).

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
dlls/dbghelp/dbghelp_private.h
dlls/dbghelp/module.c
dlls/dbghelp/tests/path.c