From 18d891986d6aa62fd94e86699b5f9bfed232339e Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 25 Feb 2008 09:01:29 +0000 Subject: [PATCH] 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. --- dlls/winspool.drv/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 17cd5073b97..80b74a5ab2f 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -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); -- 2.11.4.GIT