Patch by Tinus_: Check for right error code returned by ZwOpenSymbolicLinkObject

svn path=/trunk/; revision=14875
This commit is contained in:
Hervé Poussineau 2005-04-30 14:53:41 +00:00
parent 71486fdc01
commit 8293cc1006

View file

@ -152,10 +152,13 @@ IntVideoPortAllocateDeviceNumber(VOID)
DeviceNumber++;
continue;
}
else if (Status == STATUS_NOT_FOUND || Status == STATUS_UNSUCCESSFUL)
else if (Status == STATUS_OBJECT_NAME_INVALID)
break;
else
{
DPRINT1("ZwOpenSymbolicLinkObject() returned unexpected status: 0x%08lx\n", Status);
return 0xFFFFFFFF;
}
}
return DeviceNumber;