Remove Win32 byte types from ArchiveFile

This commit is contained in:
notmatthewbeshay
2026-03-10 00:07:15 +11:00
parent 88ffcab9a1
commit e4cc79387a
2 changed files with 4 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ byteArray ArchiveFile::getFile(const std::wstring &filename)
memcpy( out.data, m_cachedData + data->ptr, data->filesize );
#else
const unsigned int fileSize = static_cast<unsigned int>(data->filesize);
PBYTE pbData = new BYTE[fileSize == 0 ? 1 : fileSize];
uint8_t *pbData = new uint8_t[fileSize == 0 ? 1 : fileSize];
out = byteArray(pbData, fileSize);
const PortableFileIO::BinaryReadResult readResult = PortableFileIO::ReadBinaryFileSegment(
m_sourcefile.getPath(),
@@ -151,7 +151,7 @@ byteArray ArchiveFile::getFile(const std::wstring &filename)
unsigned int decompressedSize = dis.readInt();
dis.close();
PBYTE uncompressedBuffer = new BYTE[decompressedSize];
uint8_t *uncompressedBuffer = new uint8_t[decompressedSize];
Compression::getCompression()->Decompress(uncompressedBuffer, &decompressedSize, out.data+4, out.length-4);
delete [] out.data;