diff options
author | Christopher Faylor <me@cgf.cx> | 2009-07-06 15:11:30 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-07-06 15:11:30 +0000 |
commit | 1183d7fb13e9ad0fcd02b8c96c8d413b448b0ae1 (patch) | |
tree | 2f8afdd7e63bdf85de8a97a5cd9abf7b354d8e76 /winsup/cygwin/dtable.cc | |
parent | e4001d4ccd6ed63c16b6bbe3aab3dd2527cc59fe (diff) | |
download | cygnal-1183d7fb13e9ad0fcd02b8c96c8d413b448b0ae1.tar.gz cygnal-1183d7fb13e9ad0fcd02b8c96c8d413b448b0ae1.tar.bz2 cygnal-1183d7fb13e9ad0fcd02b8c96c8d413b448b0ae1.zip |
* dtable.cc (handle_to_fn): Detect failing NtQueryObject.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 08b04f091..22303dfde 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -891,8 +891,9 @@ handle_to_fn (HANDLE h, char *posix_fn) WCHAR *maxmatchdos = NULL; int maxmatchlen = 0; - NtQueryObject (h, ObjectNameInformation, &dummy_oni, sizeof (dummy_oni), &len); - if (!len) + NTSTATUS status = NtQueryObject (h, ObjectNameInformation, &dummy_oni, + sizeof (dummy_oni), &len); + if (!NT_SUCCESS (status) || !len) debug_printf ("NtQueryObject failed 1"); else { |