mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Update C++ projects to VS2019, fix warnings/errors
This commit is contained in:
@@ -403,7 +403,7 @@ XADPrefixCode *StuffIt13Decompressor::allocAndParseCodeOfSize(int numcodes, XADP
|
||||
{
|
||||
unsigned int bits;
|
||||
if (!CSInputNextBitStringLE(input, 3, bits))
|
||||
return false;
|
||||
return nullptr;
|
||||
|
||||
val = bits + 2;
|
||||
while (val--)
|
||||
@@ -414,7 +414,7 @@ XADPrefixCode *StuffIt13Decompressor::allocAndParseCodeOfSize(int numcodes, XADP
|
||||
{
|
||||
unsigned int bits;
|
||||
if (!CSInputNextBitStringLE(input, 6, bits))
|
||||
return false;
|
||||
return nullptr;
|
||||
|
||||
val = bits + 10;
|
||||
while (val--)
|
||||
|
@@ -161,7 +161,7 @@ ArchiveItemList *StuffItParser::Parse(IFileReader &reader)
|
||||
|
||||
const uint8_t fileNameLength = header[SITFH_FNAMESIZE];
|
||||
if (fileNameLength > SITFH_FNAME_CRC - SITFH_FNAME)
|
||||
return false;
|
||||
return nullptr;
|
||||
|
||||
std::vector<uint8_t> utf8FileName;
|
||||
StringCommon::ConvertMacRomanFileName(utf8FileName, header + SITFH_FNAME, fileNameLength);
|
||||
|
@@ -14,19 +14,19 @@
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{A778D062-DE76-49F6-8D05-EB26852DD605}</ProjectGuid>
|
||||
<RootNamespace>unpacktool</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v141</PlatformToolset>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
|
Reference in New Issue
Block a user