Commit e2eb5e23 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

regedit: Fixed a wrong buffer size.

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