Module: wine Branch: master Commit: 6886a49c5953c2cf5c141b1b09f288ce32ced3f3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6886a49c5953c2cf5c141b1b09...
Author: Rob Shearman rob@codeweavers.com Date: Sat Feb 16 15:36:48 2008 +0000
winspool: Fix character count passed to RegQueryValueExW in get_local_monitors.
---
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 4ba9f28..a2f6779 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -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); + dllsize = sizeof(dllname)/sizeof(dllname[0]); dllname[0] = '\0';
/* The Monitor must have a Driver-DLL */