diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2020-07-14 21:14:56 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2020-07-14 21:14:56 +0200 |
commit | 8ec5ffef2ecabd2474706b11e0238e8fca40b800 (patch) | |
tree | 7462316b9e8a743d034bd8ee482a3f55a22d03bd /src | |
parent | 61ad60f591700cc083b8a310c020554a59374a0a (diff) | |
download | dlfcn-win32-8ec5ffef2ecabd2474706b11e0238e8fca40b800.tar.gz dlfcn-win32-8ec5ffef2ecabd2474706b11e0238e8fca40b800.tar.bz2 dlfcn-win32-8ec5ffef2ecabd2474706b11e0238e8fca40b800.zip |
Replace VirtualQueryEx() call by GetModuleHandleExA() call
Usage of VirtualQueryEx() call is needed for retrieving HMODULE of passed
function address and it is just an undocumented hack. Based on @rhabacker's
tests it is unstable and does not work correctly.
https://github.com/dlfcn-win32/dlfcn-win32/pull/72#issuecomment-656581418
So replace VirtualQueryEx() call by standard GetModuleHandleExA() function
with special GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS flag which should do
the same thing but it is documented and it is working correctly.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions