regedit: Fixed a wrong buffer size.

This commit is contained in:
Marcus Meissner 2010-10-24 14:26:15 +02:00 committed by Alexandre Julliard
parent a2dfa7d8a6
commit e2eb5e2348

View file

@ -142,7 +142,7 @@ static void r_verify_reg_wsz(unsigned line, HKEY key, const char *subkey,
return;
MultiByteToWideChar(CP_ACP, 0, value_name, -1, value_nameW,
sizeof(value_nameW));
sizeof(value_nameW)/sizeof(value_nameW[0]));
fnd_len = sizeof(fnd_value);
lr = RegQueryValueExW(fnd_key, value_nameW, NULL, &fnd_type,