complete path to a loaded DLL.
+2002-02-21 Christopher Faylor <cgf@redhat.com>
+
+ * win32-nat.c (register_loaded_dll): Just use raw name when we can't
+ find the complete path to a loaded DLL.
+
2002-02-21 Fred Fish <fnf@redhat.com>
* dbxread.c (process_one_symbol): When finding an N_FUN symbol
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);
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);