aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorJuanma Barranquero2012-04-10 16:16:05 +0200
committerJuanma Barranquero2012-04-10 16:16:05 +0200
commit2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7 (patch)
treea522ea953610f470909f0dff44cdf94c1dc81d71 /src/w32.c
parent8f33b5f8734810e2feb0036bd9b0b34f51f7bc17 (diff)
downloademacs-2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7.tar.gz
emacs-2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7.zip
Record and display absolute path of DLLs loaded (bug#10424).
* lisp/misc.el (list-dynamic-libraries--loaded): New function. (list-dynamic-libraries--refresh): Use it. * src/w32.c (w32_delayed_load): Record the full path of the library being loaded.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/w32.c b/src/w32.c
index 3d3d33453c6..248a91463e8 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -5816,7 +5816,15 @@ w32_delayed_load (Lisp_Object libraries, Lisp_Object library_id)
5816 CHECK_STRING_CAR (dlls); 5816 CHECK_STRING_CAR (dlls);
5817 if ((library_dll = LoadLibrary (SDATA (XCAR (dlls))))) 5817 if ((library_dll = LoadLibrary (SDATA (XCAR (dlls)))))
5818 { 5818 {
5819 found = XCAR (dlls); 5819 char name[MAX_PATH];
5820 DWORD len;
5821
5822 len = GetModuleFileNameA (library_dll, name, sizeof (name));
5823 found = Fcons (XCAR (dlls),
5824 (len > 0)
5825 /* Possibly truncated */
5826 ? make_specified_string (name, -1, len, 1)
5827 : Qnil);
5820 break; 5828 break;
5821 } 5829 }
5822 } 5830 }