Update C++ projects to VS2019, fix warnings/errors

This commit is contained in:
elasota
2021-10-22 22:01:14 -04:00
parent 0706640bc9
commit 9ba15c6d78
35 changed files with 99 additions and 97 deletions

View File

@@ -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--)

View File

@@ -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);

View File

@@ -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>