- Fix the check for too many devices

svn path=/trunk/; revision=37121
This commit is contained in:
Cameron Gutman 2008-10-31 23:59:49 +00:00
parent 4ed7116ff9
commit 518ef62225

View file

@ -162,7 +162,7 @@ PnpRootCreateDevice(
if (Status == STATUS_NO_SUCH_DEVICE) if (Status == STATUS_NO_SUCH_DEVICE)
break; break;
} }
if (i > 9999) if (i == 9999)
{ {
DPRINT1("Too much legacy devices reported for service '%wZ'\n", &LocalServiceName); DPRINT1("Too much legacy devices reported for service '%wZ'\n", &LocalServiceName);
Status = STATUS_INSUFFICIENT_RESOURCES; Status = STATUS_INSUFFICIENT_RESOURCES;