advapi32/tests: Fix undefined memory references in registry.c.

This commit is contained in:
Dan Kegel 2007-10-29 10:47:41 -07:00 committed by Alexandre Julliard
parent f2519fdcda
commit dc072e209d
1 changed files with 2 additions and 2 deletions

View File

@ -282,8 +282,8 @@ static void test_hkey_main_Value_W(LPCWSTR name, LPCWSTR string,
string=nW;
}
ok(memcmp(value, string, cbData) == 0, "RegQueryValueExW failed: %s/%d != %s/%d\n",
wine_debugstr_wn(value, cbData), cbData,
wine_debugstr_wn(string, full_byte_len), full_byte_len);
wine_debugstr_wn(value, cbData / sizeof(WCHAR)), cbData,
wine_debugstr_wn(string, full_byte_len / sizeof(WCHAR)), full_byte_len / sizeof(WCHAR));
HeapFree(GetProcessHeap(), 0, value);
}