[Libreoffice-commits] core.git: setup_native/source
Andras Timar
andras.timar at collabora.com
Wed Sep 21 21:37:37 UTC 2016
setup_native/source/win32/customactions/sellang/sellang.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit dd3d1ff9544e2af15847385c24c59837e0db0af7
Author: Andras Timar <andras.timar at collabora.com>
Date: Thu Sep 8 09:40:14 2016 +0200
fix en-US language selection logic
Change-Id: I60a90e310bd60c97f4d135a4740928c6e19d3ebc
Reviewed-on: https://gerrit.libreoffice.org/28743
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx b/setup_native/source/win32/customactions/sellang/sellang.cxx
index 4f2827d..f83b0ac 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;
More information about the Libreoffice-commits
mailing list