summaryrefslogtreecommitdiff
path: root/setup_native/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-09-08 09:40:14 +0200
committerAndras Timar <andras.timar@collabora.com>2016-09-21 21:35:44 +0000
commitdd3d1ff9544e2af15847385c24c59837e0db0af7 (patch)
tree1151b9c5067d72d32adf7ac46195fa8a68b55444 /setup_native/source
parent08d99b2b5f66d56ead828cd6a2744a188de27673 (diff)
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>
Diffstat (limited to 'setup_native/source')
-rw-r--r--setup_native/source/win32/customactions/sellang/sellang.cxx2
1 files changed, 1 insertions, 1 deletions
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;