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:
parent
74257d5940
commit
ccbbb92888
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue