* win32-nat.c (register_loaded_dll): Just use raw name when we can't find the

complete path to a loaded DLL.
This commit is contained in:
Christopher Faylor
2002-02-22 01:35:59 +00:00
parent e8717518fc
commit 6badb179ab
3 changed files with 11 additions and 2 deletions

View File

@ -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);