Commit 35be5e1d authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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.
parent ee8dd6a1
......@@ -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" */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment