winspool: Fix the character count passed into RegEnumKeyExW in get_local_monitors.
RegEnumKeyExW takes a character count for the key name, not a byte count.
This commit is contained in:
parent
ee8dd6a19f
commit
35be5e1d1b
|
@ -755,7 +755,7 @@ static DWORD get_local_monitors(DWORD level, LPBYTE pMonitors, DWORD cbBuf, LPDW
|
|||
ptr = (LPWSTR) &pMonitors[len];
|
||||
|
||||
numentries = 0;
|
||||
len = sizeof(buffer);
|
||||
len = sizeof(buffer)/sizeof(buffer[0]);
|
||||
buffer[0] = '\0';
|
||||
|
||||
/* Windows creates the "Monitors"-Key on reboot / start "spooler" */
|
||||
|
|
Loading…
Reference in New Issue