https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8379c87b0bb1559efac21…
commit 8379c87b0bb1559efac214171268241fcb74d731
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Jul 10 19:01:11 2021 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sat Jul 10 19:03:37 2021 +0200
[VIDEOPRT] Write correct MaxObjectNumber to registry
VideoPortMaxObjectNumber variable will be updated later in the function, if everything
went fine.
---
win32ss/drivers/videoprt/videoprt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/win32ss/drivers/videoprt/videoprt.c b/win32ss/drivers/videoprt/videoprt.c
index c0a1d446116..d49cd20f033 100644
--- a/win32ss/drivers/videoprt/videoprt.c
+++ b/win32ss/drivers/videoprt/videoprt.c
@@ -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;
}