diff --git a/wrappers/windres-wrapper.sh b/wrappers/windres-wrapper.sh index dbcbf83..1de8830 100755 --- a/wrappers/windres-wrapper.sh +++ b/wrappers/windres-wrapper.sh @@ -121,9 +121,9 @@ while [ $# != 0 ]; do "-I"*) INCLUDE="${INCLUDE} ${1#-I}";; "-c"|"--codepage") - CODEPAGE="${1#*=}";; - "-c="*|"--codepage="*) CODEPAGE="${2}"; shift;; + "-c="*|"--codepage="*) + CODEPAGE="${1#*=}";; "--preprocessor") error "ENOSYS";; "--preprocessor-arg")