mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
* win32-nat.c (register_loaded_dll): Correctly check for invalid handle value.
This commit is contained in:
@@ -582,7 +582,7 @@ register_loaded_dll (const char *name, DWORD load_addr)
|
||||
HANDLE h = FindFirstFile(name, &w32_fd);
|
||||
size_t len;
|
||||
|
||||
if (h)
|
||||
if (h != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
FindClose (h);
|
||||
strcpy (buf, name);
|
||||
|
||||
Reference in New Issue
Block a user