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

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2016-05-24 12:48:15 +00:00 committed by Alexandre Julliard
parent 74257d5940
commit ccbbb92888
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{