appwiz.cpl: Explicitly compare strcmp result to 0.

Fixes clang warning:
addons.c:318:29: warning: use of logical '&&' with constant operand
[-Wconstant-logical-operand]

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-04-20 14:40:11 +02:00 committed by Alexandre Julliard
parent 47a5cd1090
commit a2b08874cc
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ static enum install_res install_from_default_dir(void)
if (ret == INSTALL_NEXT)
ret = install_from_unix_file(INSTALL_DATADIR "/wine/", addon->subdir_name, addon->file_name);
if (ret == INSTALL_NEXT && strcmp(INSTALL_DATADIR, "/usr/share"))
if (ret == INSTALL_NEXT && strcmp(INSTALL_DATADIR, "/usr/share") != 0)
ret = install_from_unix_file("/usr/share/wine/", addon->subdir_name, addon->file_name);
if (ret == INSTALL_NEXT)
ret = install_from_unix_file("/opt/wine/", addon->subdir_name, addon->file_name);