diff --git a/win/configure.js b/win/configure.js index 4450b97f9a1..0de09fb318c 100755 --- a/win/configure.js +++ b/win/configure.js @@ -134,6 +134,8 @@ function GetValue(str, key) var end = str.indexOf("\n", pos); if (str.charAt(pos) == "\"") pos++; + if (str.charAt(end-1) == "\r") + end--; if (str.charAt(end-1) == "\"") end--; return str.substring(pos, end);