From 8293cc1006ce85264b97e3582c688975182cd853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 30 Apr 2005 14:53:41 +0000 Subject: [PATCH] Patch by Tinus_: Check for right error code returned by ZwOpenSymbolicLinkObject svn path=/trunk/; revision=14875 --- reactos/drivers/video/videoprt/videoprt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/video/videoprt/videoprt.c b/reactos/drivers/video/videoprt/videoprt.c index 19c69f06160..80e23c99132 100644 --- a/reactos/drivers/video/videoprt/videoprt.c +++ b/reactos/drivers/video/videoprt/videoprt.c @@ -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;