- Roel Messiant: Fix NtQueryObject to return the required buffer size if the buffer provided was too small. Unimplemented paths behaviour is preserved.
svn path=/trunk/; revision=50032
/* Information about all types */
case ObjectTypesInformation:
DPRINT1("NOT IMPLEMENTED!\n");
+ InfoLength = Length;
Status = STATUS_NOT_IMPLEMENTED;
break;
default:
/* Fail it */
+ InfoLength = Length;
Status = STATUS_INVALID_INFO_CLASS;
break;
}
if (ResultLength)
{
/* Write the length */
- *ResultLength = Length;
+ *ResultLength = InfoLength;
}
}
_SEH2_EXCEPT(ExSystemExceptionFilter())