Filip Navara:

- Only increment VideoPortDeviceNumber, when IntVideoPortCreateAdapterDeviceObject and IntVideoPortFindAdapter succeeded.
  This fixes loading the CL54xx miniport driver. But it still isn't usable, because win32k cannot find the DDI driver for it.

svn path=/trunk/; revision=33357
This commit is contained in:
Colin Finck 2008-05-07 21:51:39 +00:00
parent df3116fa7f
commit b9b700035f
3 changed files with 6 additions and 1 deletions

View file

@ -81,6 +81,8 @@ IntVideoPortAddDevice(
DriverExtension,
PhysicalDeviceObject,
&DeviceObject);
if (NT_SUCCESS(Status))
VideoPortDeviceNumber++;
return Status;
}

View file

@ -187,7 +187,7 @@ IntVideoPortCreateAdapterDeviceObject(
* object names and symlinks.
*/
DeviceNumber = VideoPortDeviceNumber++;
DeviceNumber = VideoPortDeviceNumber;
if (DeviceNumber == 0xFFFFFFFF)
{
WARN_(VIDEOPRT, "Can't find free device number\n");
@ -721,6 +721,8 @@ VideoPortInitialize(
return Status;
Status = IntVideoPortFindAdapter(DriverObject, DriverExtension, DeviceObject);
INFO_(VIDEOPRT, "IntVideoPortFindAdapter returned 0x%x\n", Status);
if (NT_SUCCESS(Status))
VideoPortDeviceNumber++;
return Status;
}
else

View file

@ -196,6 +196,7 @@ IntVideoPortMapPhysicalMemory(
extern ULONG CsrssInitialized;
extern PKPROCESS Csrss;
extern ULONG VideoPortDeviceNumber;
VOID FASTCALL
IntAttachToCSRSS(PKPROCESS *CallingProcess, PKAPC_STATE ApcState);