Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2013-03-07 00:03:29 +0400
committerUnderground78 <underground78@users.sourceforge.net>2013-03-07 00:11:55 +0400
commit70621226962f395ce61798bbbe1b26bcb450129a (patch)
tree0ef0114aeb62217a3181d21609c84726a2b897e3 /src/DSUtil/DSUtil.cpp
parent39192a68b373b36f993ccc7b86e3740491b340f8 (diff)
Add missing brackets.
Diffstat (limited to 'src/DSUtil/DSUtil.cpp')
-rw-r--r--src/DSUtil/DSUtil.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/DSUtil/DSUtil.cpp b/src/DSUtil/DSUtil.cpp
index b22d71146..832d9efa2 100644
--- a/src/DSUtil/DSUtil.cpp
+++ b/src/DSUtil/DSUtil.cpp
@@ -2136,7 +2136,7 @@ CString ISO6391ToLanguage(LPCSTR code)
strncpy_s(tmp, code, 2);
tmp[2] = 0;
_strlwr_s(tmp);
- for (ptrdiff_t i = 0, j = _countof(s_isolangs); i < j; i++)
+ for (ptrdiff_t i = 0, j = _countof(s_isolangs); i < j; i++) {
if (!strcmp(s_isolangs[i].iso6391, tmp)) {
CString ret = CString(CStringA(s_isolangs[i].name));
int k = ret.Find(';');
@@ -2145,6 +2145,7 @@ CString ISO6391ToLanguage(LPCSTR code)
}
return ret;
}
+ }
return _T("");
}
@@ -2201,10 +2202,11 @@ CString ISO6391To6392(LPCSTR code)
strncpy_s(tmp, code, 2);
tmp[2] = 0;
_strlwr_s(tmp);
- for (ptrdiff_t i = 0, j = _countof(s_isolangs); i < j; i++)
+ for (ptrdiff_t i = 0, j = _countof(s_isolangs); i < j; i++) {
if (!strcmp(s_isolangs[i].iso6391, tmp)) {
return CString(CStringA(s_isolangs[i].iso6392));
}
+ }
return _T("");
}
@@ -2214,10 +2216,11 @@ CString ISO6392To6391(LPCSTR code)
strncpy_s(tmp, code, 3);
tmp[3] = 0;
_strlwr_s(tmp);
- for (ptrdiff_t i = 0, j = _countof(s_isolangs); i < j; i++)
+ for (ptrdiff_t i = 0, j = _countof(s_isolangs); i < j; i++) {
if (!strcmp(s_isolangs[i].iso6392, tmp)) {
return CString(CStringA(s_isolangs[i].iso6391));
}
+ }
return _T("");
}