mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:05:45 +00:00
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:
parent
df3116fa7f
commit
b9b700035f
3 changed files with 6 additions and 1 deletions
|
@ -81,6 +81,8 @@ IntVideoPortAddDevice(
|
|||
DriverExtension,
|
||||
PhysicalDeviceObject,
|
||||
&DeviceObject);
|
||||
if (NT_SUCCESS(Status))
|
||||
VideoPortDeviceNumber++;
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -196,6 +196,7 @@ IntVideoPortMapPhysicalMemory(
|
|||
|
||||
extern ULONG CsrssInitialized;
|
||||
extern PKPROCESS Csrss;
|
||||
extern ULONG VideoPortDeviceNumber;
|
||||
|
||||
VOID FASTCALL
|
||||
IntAttachToCSRSS(PKPROCESS *CallingProcess, PKAPC_STATE ApcState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue