+2009-07-06 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * dtable.cc (handle_to_fn): Detect failing NtQueryObject.
+
2009-07-06 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc: Delete stray CR.
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
{