Corrected indentation of 7zip support file to adhere to RA standards

This commit is contained in:
Timo Strunk 2014-09-02 16:47:51 +02:00
parent 3d400468f9
commit fab75f5e6d

View File

@ -110,7 +110,7 @@ static SRes Utf16_To_Char(CBuf *buf, const UInt16 *s, int fileMode)
int len = 0; int len = 0;
for (len = 0; s[len] != '\0'; len++); for (len = 0; s[len] != '\0'; len++);
#ifdef _WIN32 #ifdef _WIN32
{ {
int size = len * 3 + 100; int size = len * 3 + 100;
if (!Buf_EnsureSize(buf, size)) if (!Buf_EnsureSize(buf, size))
@ -120,11 +120,11 @@ static SRes Utf16_To_Char(CBuf *buf, const UInt16 *s, int fileMode)
BOOL defUsed; BOOL defUsed;
int numChars = WideCharToMultiByte(fileMode ? int numChars = WideCharToMultiByte(fileMode ?
( (
#ifdef UNDER_CE #ifdef UNDER_CE
CP_ACP CP_ACP
#else #else
AreFileApisANSI() ? CP_ACP : CP_OEMCP AreFileApisANSI() ? CP_ACP : CP_OEMCP
#endif #endif
) : CP_OEMCP, ) : CP_OEMCP,
0, s, len, (char *)buf->data, size, &defaultChar, &defUsed); 0, s, len, (char *)buf->data, size, &defaultChar, &defUsed);
if (numChars == 0 || numChars >= size) if (numChars == 0 || numChars >= size)
@ -133,10 +133,10 @@ static SRes Utf16_To_Char(CBuf *buf, const UInt16 *s, int fileMode)
return SZ_OK; return SZ_OK;
} }
} }
#else #else
fileMode = fileMode; fileMode = fileMode;
return Utf16_To_Utf8Buf(buf, s, len); return Utf16_To_Utf8Buf(buf, s, len);
#endif #endif
} }