From 14156c0080484423594f3a3b4a0baa52e6b8d171 Mon Sep 17 00:00:00 2001 From: Jens Reyer Date: Wed, 28 Feb 2024 20:47:06 +0100 Subject: [PATCH] winetricks_set_wineprefix: warn once if wow64 unknown --- src/winetricks | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/winetricks b/src/winetricks index f7e6a20ab..c30256fbc 100755 --- a/src/winetricks +++ b/src/winetricks @@ -5133,7 +5133,9 @@ winetricks_set_wineprefix() # determine wow64 type (new/old) # FIXME: check what upstream is calling them - if [ "${_W_wineserver_binary_arch}" = "${_W_wine_binary_arch}" ]; then + if [ -z "${_W_wineserver_binary_arch}" ] || [ -z "${_W_wine_binary_arch}" ]; then + _W_wow64_style="unknown" + elif [ "${_W_wineserver_binary_arch}" = "${_W_wine_binary_arch}" ]; then _W_wow64_style="new" else _W_wow64_style="classic" @@ -5232,6 +5234,8 @@ winetricks_set_wineprefix() if [ "${_W_wow64_style}" = "new" ]; then w_warn "You apppear to be using Wine's new wow64 mode. Note that this is EXPERIMENTAL and not yet fully supported. If reporting an issue, be sure to mention this." + elif [ "${_W_wow64_style}" = "unknown" ]; then + w_warn "WoW64 type could not be detected." fi fi