[win32] cannot automatically find executable file [...] warning at GDB startup
[deliverable/binutils-gdb.git] / gdb / windows-nat.c
index a7132d62105debd4cbb350c7752ccc09d8ef012c..525603744882cb5306ceff89c2bf8ac809946dbc 100644 (file)
@@ -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)
This page took 0.025506 seconds and 4 git commands to generate.