mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +00:00
[VIDEOPRT] Write correct MaxObjectNumber to registry
VideoPortMaxObjectNumber variable will be updated later in the function, if everything went fine.
This commit is contained in:
parent
9e6b0b16e9
commit
8379c87b0b
1 changed files with 3 additions and 3 deletions
|
@ -86,8 +86,8 @@ IntVideoPortAddDeviceMapLink(
|
||||||
L"VIDEO",
|
L"VIDEO",
|
||||||
L"MaxObjectNumber",
|
L"MaxObjectNumber",
|
||||||
REG_DWORD,
|
REG_DWORD,
|
||||||
&VideoPortMaxObjectNumber,
|
&DeviceNumber,
|
||||||
sizeof(VideoPortMaxObjectNumber));
|
sizeof(DeviceNumber));
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ERR_(VIDEOPRT, "Failed to write MaxObjectNumber: 0x%X\n", Status);
|
ERR_(VIDEOPRT, "Failed to write MaxObjectNumber: 0x%X\n", Status);
|
||||||
|
@ -101,7 +101,7 @@ IntVideoPortAddDeviceMapLink(
|
||||||
Status = IoCreateSymbolicLink(&SymlinkName, &DeviceName);
|
Status = IoCreateSymbolicLink(&SymlinkName, &DeviceName);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ERR_(VIDEOPRT, "Failed to write MaxObjectNumber: 0x%X\n", Status);
|
ERR_(VIDEOPRT, "Failed to create symbolic link: 0x%X\n", Status);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue