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.
This commit is contained in:
Rob Shearman 2008-02-25 09:01:29 +00:00 committed by Alexandre Julliard
parent 5838185133
commit 18d891986d
1 changed files with 1 additions and 1 deletions

View File

@ -808,7 +808,7 @@ static DWORD get_local_monitors(DWORD level, LPBYTE pMonitors, DWORD cbBuf, LPDW
} }
} }
index++; index++;
len = sizeof(buffer); len = sizeof(buffer)/sizeof(buffer[0]);
buffer[0] = '\0'; buffer[0] = '\0';
} }
RegCloseKey(hroot); RegCloseKey(hroot);