Commit 19464a6b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

programs: Fixed two RegEnumValue name lengths.

parent 0025eaef
......@@ -51,7 +51,7 @@ static void CreateRegRec(HKEY hKey, HTREEITEM parent, WCHAR *wszKeyName, BOOL ad
while(TRUE)
{
lenName = sizeof(WCHAR[MAX_LOAD_STRING]);
lenName = sizeof(WCHAR[MAX_LOAD_STRING])/sizeof(WCHAR);
lenData = sizeof(WCHAR[MAX_LOAD_STRING]);
retEnum = RegEnumValue(hKey, i, wszName, &lenName,
......
......@@ -491,7 +491,7 @@ WCHAR **enumerate_valuesW(HKEY root, WCHAR *path)
while (TRUE)
{
WCHAR name[1024];
DWORD namesize = sizeof(name);
DWORD namesize = sizeof(name)/sizeof(name[0]);
BOOL removed = FALSE;
/* find out the needed size, allocate a buffer, read the value */
......
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