* autoload.cc (LoadDLLfuncNt): New define to wrap NT native functions.

Use for NT native functions throughout.
	* dtable.cc (handle_to_fn): Treate return value of NtQueryObject as
	NTSTATUS value.
This commit is contained in:
Corinna Vinschen
2006-03-13 11:22:51 +00:00
parent 57001a7f10
commit 75c7893797
3 changed files with 37 additions and 26 deletions

View File

@ -829,9 +829,10 @@ handle_to_fn (HANDLE h, char *posix_fn)
ntfn->Name.MaximumLength = sizeof (fnbuf) - sizeof (*ntfn);
ntfn->Name.Buffer = (WCHAR *) (ntfn + 1);
DWORD res = NtQueryObject (h, ObjectNameInformation, ntfn, sizeof (fnbuf), NULL);
NTSTATUS res = NtQueryObject (h, ObjectNameInformation, ntfn, sizeof (fnbuf),
NULL);
if (res)
if (NT_SUCCESS (res))
{
strcpy (posix_fn, unknown_file);
debug_printf ("NtQueryObject failed");