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:
Rob Shearman 2008-02-21 16:44:48 +00:00 committed by Alexandre Julliard
parent ee8dd6a19f
commit 35be5e1d1b
1 changed files with 1 additions and 1 deletions

View File

@ -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" */