Revert "winspool: Fix character count passed to RegQueryValueExW in get_local_monitors".

This reverts commit 6886a49c59.

RegQueryValueExW takes a byte count, not a character count (spotted by 
Detlef Riekenberg).
This commit is contained in:
Rob Shearman 2008-02-21 16:44:42 +00:00 committed by Alexandre Julliard
parent 0435395ccc
commit ee8dd6a19f
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ static DWORD get_local_monitors(DWORD level, LPBYTE pMonitors, DWORD cbBuf, LPDW
/* Scan all Monitor-Registry-Keys */
while (RegEnumKeyExW(hroot, index, buffer, &len, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) {
TRACE("Monitor_%d: %s\n", numentries, debugstr_w(buffer));
dllsize = sizeof(dllname)/sizeof(dllname[0]);
dllsize = sizeof(dllname);
dllname[0] = '\0';
/* The Monitor must have a Driver-DLL */