Commit 4131edbd authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 7ed33ae7
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment