Rob Shearman : shell32: Fix incorrect character count passed into RegEnumKeyExW in CreateDesktopEnumList .

Alexandre Julliard julliard at winehq.org
Mon Feb 18 08:50:32 CST 2008


Module: wine
Branch: master
Commit: 4131edbdbe9a1c0fdafd707b0702820a134c0439
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4131edbdbe9a1c0fdafd707b0702820a134c0439

Author: Rob Shearman <rob at codeweavers.com>
Date:   Sat Feb 16 15:36:24 2008 +0000

shell32: Fix incorrect character count passed into RegEnumKeyExW in CreateDesktopEnumList.

---

 dlls/shell32/shfldr_desktop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/shfldr_desktop.c b/dlls/shell32/shfldr_desktop.c
index 14571b1..aeb6e4b 100644
--- a/dlls/shell32/shfldr_desktop.c
+++ b/dlls/shell32/shfldr_desktop.c
@@ -269,7 +269,7 @@ static BOOL CreateDesktopEnumList(IEnumIDList *list, DWORD dwFlags)
                     DWORD size;
                     LONG r;
 
-                    size = sizeof (iid);
+                    size = sizeof (iid) / sizeof (iid[0]);
                     r = RegEnumKeyExW(hkey, i, iid, &size, 0, NULL, NULL, NULL);
                     if (ERROR_SUCCESS == r)
                     {




More information about the wine-cvs mailing list