From: Michael Gilbert Date: Tue, 13 Sep 2022 00:46:21 +0000 (+0100) Subject: adjust search paths for addon installers X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~2^2^2^2~43 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c1b81fb785a6930693ace2fb21404a80666ceb22;p=wine.git adjust search paths for addon installers forwarded: not-needed Gbp-Pq: Topic debianization Gbp-Pq: Name addon-paths.patch --- diff --git a/dlls/appwiz.cpl/addons.c b/dlls/appwiz.cpl/addons.c index b4da613..e0542f7 100644 --- a/dlls/appwiz.cpl/addons.c +++ b/dlls/appwiz.cpl/addons.c @@ -209,7 +209,7 @@ static enum install_res install_from_dos_file(const WCHAR *dir, const WCHAR *sub lstrcpyW( path, dir ); if (!wcsncmp( path, L"\\??\\", 4 )) path[1] = '\\'; /* change \??\ into \\?\ */ - if (len && path[len-1] != '/' && path[len-1] != '\\') path[len++] = '\\'; + if (len && path[len-1] != '/' && path[len-1] != '\\' && path[len-1] != '-') path[len++] = '\\'; lstrcpyW( path + len, subdir ); lstrcatW( path, L"\\" ); @@ -318,12 +318,14 @@ static enum install_res install_from_default_dir(void) heap_free(dir_buf); } + /* debian's DATADIR already defines the wine subdir */ if (ret == INSTALL_NEXT) - ret = install_from_unix_file(INSTALL_DATADIR "/wine/", addon->subdir_name, addon->file_name); + ret = install_from_unix_file(INSTALL_DATADIR "/", addon->subdir_name, addon->file_name); + + /* also, always search /usr/share/wine/ */ 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); + return ret; }