mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 07:21:15 +00:00
Corrected indentation of 7zip support file to adhere to RA standards
This commit is contained in:
parent
3d400468f9
commit
fab75f5e6d
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user