Commit 18d89198 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

winspool.drv: Fix the character count passed into RegEnumKeyExW in get_local_monitors.

len is used in RegEnumKeyExW and this takes a character count for the key argument, not a byte count.
parent 58381851
......@@ -808,7 +808,7 @@ static DWORD get_local_monitors(DWORD level, LPBYTE pMonitors, DWORD cbBuf, LPDW
}
}
index++;
len = sizeof(buffer);
len = sizeof(buffer)/sizeof(buffer[0]);
buffer[0] = '\0';
}
RegCloseKey(hroot);
......
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