Skip to content

Commit 8379c87

Browse files
committed
[VIDEOPRT] Write correct MaxObjectNumber to registry
VideoPortMaxObjectNumber variable will be updated later in the function, if everything went fine.
1 parent 9e6b0b1 commit 8379c87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

win32ss/drivers/videoprt/videoprt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ IntVideoPortAddDeviceMapLink(
8686
L"VIDEO",
8787
L"MaxObjectNumber",
8888
REG_DWORD,
89-
&VideoPortMaxObjectNumber,
90-
sizeof(VideoPortMaxObjectNumber));
89+
&DeviceNumber,
90+
sizeof(DeviceNumber));
9191
if (!NT_SUCCESS(Status))
9292
{
9393
ERR_(VIDEOPRT, "Failed to write MaxObjectNumber: 0x%X\n", Status);
@@ -101,7 +101,7 @@ IntVideoPortAddDeviceMapLink(
101101
Status = IoCreateSymbolicLink(&SymlinkName, &DeviceName);
102102
if (!NT_SUCCESS(Status))
103103
{
104-
ERR_(VIDEOPRT, "Failed to write MaxObjectNumber: 0x%X\n", Status);
104+
ERR_(VIDEOPRT, "Failed to create symbolic link: 0x%X\n", Status);
105105
return Status;
106106
}
107107

0 commit comments

Comments
 (0)