winspool: Fix character count passed to RegQueryValueExW in get_local_monitors.
This commit is contained in:
parent
85fbdfcc9e
commit
6886a49c59
|
@ -763,7 +763,7 @@ static DWORD get_local_monitors(DWORD level, LPBYTE pMonitors, DWORD cbBuf, LPDW
|
||||||
/* Scan all Monitor-Registry-Keys */
|
/* Scan all Monitor-Registry-Keys */
|
||||||
while (RegEnumKeyExW(hroot, index, buffer, &len, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) {
|
while (RegEnumKeyExW(hroot, index, buffer, &len, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) {
|
||||||
TRACE("Monitor_%d: %s\n", numentries, debugstr_w(buffer));
|
TRACE("Monitor_%d: %s\n", numentries, debugstr_w(buffer));
|
||||||
dllsize = sizeof(dllname);
|
dllsize = sizeof(dllname)/sizeof(dllname[0]);
|
||||||
dllname[0] = '\0';
|
dllname[0] = '\0';
|
||||||
|
|
||||||
/* The Monitor must have a Driver-DLL */
|
/* The Monitor must have a Driver-DLL */
|
||||||
|
|
Loading…
Reference in New Issue