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>
This commit is contained in:
parent
47a5cd1090
commit
a2b08874cc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue