mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Patch by Tinus_: Check for right error code returned by ZwOpenSymbolicLinkObject
svn path=/trunk/; revision=14875
This commit is contained in:
parent
71486fdc01
commit
8293cc1006
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue