Rob Shearman : Revert "winspool: Fix character count passed to RegQueryValueExW in get_local_monitors".
Alexandre Julliard
julliard at winehq.org
Fri Feb 22 05:49:30 CST 2008
Module: wine
Branch: master
Commit: ee8dd6a19f1fbd06368cbee52a7b8cdb16551e5d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ee8dd6a19f1fbd06368cbee52a7b8cdb16551e5d
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Feb 21 16:44:42 2008 +0000
Revert "winspool: Fix character count passed to RegQueryValueExW in get_local_monitors".
This reverts commit 6886a49c5953c2cf5c141b1b09f288ce32ced3f3.
RegQueryValueExW takes a byte count, not a character count (spotted by
Detlef Riekenberg).
---
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 a2f6779..4ba9f28 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)/sizeof(dllname[0]);
+ dllsize = sizeof(dllname);
dllname[0] = '\0';
/* The Monitor must have a Driver-DLL */
More information about the wine-cvs
mailing list