From a5aa29b71fae3293651e7d8421a98a5191830553 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 22 Feb 2002 01:35:59 +0000 Subject: * win32-nat.c (register_loaded_dll): Just use raw name when we can't find the complete path to a loaded DLL. --- gdb/win32-nat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/win32-nat.c') diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index cd288be2c74..2ef28e0e538 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -582,7 +582,9 @@ register_loaded_dll (const char *name, DWORD load_addr) HANDLE h = FindFirstFile(name, &w32_fd); size_t len; - if (h != INVALID_HANDLE_VALUE) + if (h == INVALID_HANDLE_VALUE) + strcpy (buf, name); + else { FindClose (h); strcpy (buf, name); -- cgit v1.2.1