driver: fix for has_nfs_prefix()

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2011-04-20 11:58:16 -04:00 committed by unknown
parent 5628175fbb
commit 880dbf8afc

View file

@ -2361,7 +2361,7 @@ static NTSTATUS has_nfs_prefix(
{ {
NTSTATUS status = STATUS_BAD_NETWORK_NAME; NTSTATUS status = STATUS_BAD_NETWORK_NAME;
if (NetRootName->Length >= SrvCallName->Length + NfsPrefix.Length) { if (NetRootName->Length == SrvCallName->Length + NfsPrefix.Length) {
const UNICODE_STRING NetRootPrefix = { const UNICODE_STRING NetRootPrefix = {
NfsPrefix.Length, NfsPrefix.Length,
NetRootName->MaximumLength - SrvCallName->Length, NetRootName->MaximumLength - SrvCallName->Length,