[Winetricks] Bug regarding setting virtual desktop causing non-zero exit code
I think this code in winetricks causes issues with returning non-zero when changing the resolution (vd
= Virtual Desktop), while the resolution change actually went OK.
In winetricks
script:
# Hack..
if test "$cmd" = vd; then
load_vd "$arg"
_W_status=$?
test "$W_OPT_NOCLEAN" = 1 || rm -rf "$W_TMP"
mkdir -p "$W_TMP"
return $_W_status
fi
So load_vd
actually doesn't return any exit code... I do not know what _W_status=$?
is doing. But I think this is the exit code of the test
command (part of the if statement).