diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-07-07 16:56:57 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-07-07 16:56:57 +0400 |
commit | d7ffb08b3e6551dca57eb421669876e1597fce48 (patch) | |
tree | 6d9ca0d13d12b46202645188ce93a92d34e9287e /src/DSUtil/text.cpp | |
parent | 2587b85630061898bb6048b89ae2b2e77dd5b66b (diff) |
indentation cosmetics
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5390 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/text.cpp')
-rw-r--r-- | src/DSUtil/text.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/DSUtil/text.cpp b/src/DSUtil/text.cpp index 3df2726cb..355537c33 100644 --- a/src/DSUtil/text.cpp +++ b/src/DSUtil/text.cpp @@ -46,15 +46,22 @@ CStringA ConvertMBCS(CStringA str, DWORD SrcCharSet, DWORD DstCharSet) memset(mbcs, 0, str.GetLength() * 6 + 1);
int len = MultiByteToWideChar(
- CharSetToCodePage(SrcCharSet), 0,
- str, -1, // null terminated string
- utf16, str.GetLength() + 1);
+ CharSetToCodePage(SrcCharSet),
+ 0,
+ str,
+ -1, // null terminated string
+ utf16,
+ str.GetLength() + 1);
len = WideCharToMultiByte(
- CharSetToCodePage(DstCharSet), 0,
- utf16, len,
- mbcs, str.GetLength() * 6,
- NULL, NULL);
+ CharSetToCodePage(DstCharSet),
+ 0,
+ utf16,
+ len,
+ mbcs,
+ str.GetLength() * 6,
+ NULL,
+ NULL);
str = mbcs;
|