Module: wine Branch: master Commit: 18d891986d6aa62fd94e86699b5f9bfed232339e URL: http://source.winehq.org/git/wine.git/?a=commit;h=18d891986d6aa62fd94e86699b...
Author: Rob Shearman rob@codeweavers.com Date: Mon Feb 25 09:01:29 2008 +0000
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 17cd507..80b74a5 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);