diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index a7132d6..5256037 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -2830,7 +2830,8 @@ _initialize_loadable (void) { GPA (hm, EnumProcessModules); GPA (hm, GetModuleInformation); - GPA (hm, GetModuleFileNameEx); + GetModuleFileNameEx = (GetModuleFileNameEx_ftype *) + GetProcAddress (hm, GetModuleFileNameEx_name); } if (!EnumProcessModules || !GetModuleInformation || !GetModuleFileNameEx) |