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:
parent
5838185133
commit
18d891986d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue