Rob Shearman : winspool: Fix the character count passed into RegEnumKeyExW in get_local_monitors.
Alexandre Julliard
julliard at winehq.org
Fri Feb 22 05:49:31 CST 2008
Module: wine
Branch: master
Commit: 35be5e1d1b10287aa019762c6724f6c4f8026150
URL: http://source.winehq.org/git/wine.git/?a=commit;h=35be5e1d1b10287aa019762c6724f6c4f8026150
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Feb 21 16:44:48 2008 +0000
winspool: Fix the character count passed into RegEnumKeyExW in get_local_monitors.
RegEnumKeyExW takes a character count for the key name, 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 4ba9f28..17cd507 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -755,7 +755,7 @@ static DWORD get_local_monitors(DWORD level, LPBYTE pMonitors, DWORD cbBuf, LPDW
ptr = (LPWSTR) &pMonitors[len];
numentries = 0;
- len = sizeof(buffer);
+ len = sizeof(buffer)/sizeof(buffer[0]);
buffer[0] = '\0';
/* Windows creates the "Monitors"-Key on reboot / start "spooler" */
More information about the wine-cvs
mailing list