kernelbase: Re-implement EnumProcessModules on top of EnumProcessModulesEx.
commitdf5f6f66de80085249d392be5efa085e6ee056a0
authorEric Pouech <eric.pouech@gmail.com>
Tue, 14 Feb 2023 10:07:03 +0000 (14 11:07 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 15 Feb 2023 20:48:33 +0000 (15 21:48 +0100)
treed9228558acd31e4b16f22df96584eacfb0efe22e
parent00bf7293af13f3766c6c839f0125785ac9084de8
kernelbase: Re-implement EnumProcessModules on top of EnumProcessModulesEx.

Note: this patch changes the results of EnumProcessModules for a wow64
target process called from a 64bit process.

It now returns:
- main module and all loaded 64bit modules (Wine multi-arch wow64 and
  Windows)
- main module only (Wine "old" wow64).
It used to return all the 32bit modules.
You now must use EnumProcessModulesEx(..., LIST_MODULES_32BIT) to get
that result.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
dlls/kernelbase/debug.c
dlls/psapi/tests/psapi_main.c