Commit dc072e20 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

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

parent f2519fdc
......@@ -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);
}
......
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