From dd3d1ff9544e2af15847385c24c59837e0db0af7 Mon Sep 17 00:00:00 2001
From: Andras Timar <andras.timar@collabora.com>
Date: Thu, 8 Sep 2016 09:40:14 +0200
Subject: fix en-US language selection logic

Change-Id: I60a90e310bd60c97f4d135a4740928c6e19d3ebc
Reviewed-on: https://gerrit.libreoffice.org/28743
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
---
 setup_native/source/win32/customactions/sellang/sellang.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'setup_native')

diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx b/setup_native/source/win32/customactions/sellang/sellang.cxx
index 4f2827da801a..f83b0ac84abb 100644
--- a/setup_native/source/win32/customactions/sellang/sellang.cxx
+++ b/setup_native/source/win32/customactions/sellang/sellang.cxx
@@ -341,7 +341,7 @@ extern "C" UINT __stdcall SelectLanguage( MSIHANDLE handle )
     }
     if (!matches) {
         for (int i = 0; i < nlangs; i++) {
-            if (strcmp(langs[nlangs].lang, "en_US") == 0) {
+            if (strcmp(langs[i].lang, "en_US") == 0) {
                 langs[i].install = true;
                 matches = true;
                 break;
-- 
cgit