Patch by Tinus_: Check for right error code returned by
ZwOpenSymbolicLinkObject
Modified: trunk/reactos/drivers/video/videoprt/videoprt.c
_____
Modified: trunk/reactos/drivers/video/videoprt/videoprt.c
--- trunk/reactos/drivers/video/videoprt/videoprt.c 2005-04-30
14:36:05 UTC (rev 14874)
+++ trunk/reactos/drivers/video/videoprt/videoprt.c 2005-04-30
14:53:41 UTC (rev 14875)
@@ -152,10 +152,13 @@
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;
Show replies by date