mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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"MaxObjectNumber",
|
||||
REG_DWORD,
|
||||
&VideoPortMaxObjectNumber,
|
||||
sizeof(VideoPortMaxObjectNumber));
|
||||
&DeviceNumber,
|
||||
sizeof(DeviceNumber));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ERR_(VIDEOPRT, "Failed to write MaxObjectNumber: 0x%X\n", Status);
|
||||
|
@ -101,7 +101,7 @@ IntVideoPortAddDeviceMapLink(
|
|||
Status = IoCreateSymbolicLink(&SymlinkName, &DeviceName);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue