Commit ccbbb928 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Avoid using strlenW to check if a string is valid.

parent 74257d59
......@@ -159,7 +159,7 @@ static BOOL ask_confirm(unsigned int msgid, WCHAR *reg_info)
LoadStringW(hmod, STRING_NO, Nbuffer, ARRAY_SIZE(Nbuffer));
LoadStringW(hmod, STRING_DEFAULT_VALUE, defval, ARRAY_SIZE(defval));
str = (reg_info && strlenW(reg_info)) ? reg_info : defval;
str = (reg_info && *reg_info) ? reg_info : defval;
while (1)
{
......
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