(7z) Change Byte to uint8_t

This commit is contained in:
twinaphex 2014-10-22 04:28:26 +02:00
parent ccf43f6e85
commit 520dbf598d

4
deps/7zip/7zFile.c vendored
View File

@ -109,7 +109,7 @@ WRes File_Read(CSzFile *p, void *data, size_t *size)
DWORD curSize = (originalSize > kChunkSizeMax) ? kChunkSizeMax : (DWORD)originalSize;
DWORD processed = 0;
BOOL res = ReadFile(p->handle, data, curSize, &processed, NULL);
data = (void *)((Byte *)data + processed);
data = (void *)((uint8_t*)data + processed);
originalSize -= processed;
*size += processed;
if (!res)
@ -144,7 +144,7 @@ WRes File_Write(CSzFile *p, const void *data, size_t *size)
DWORD curSize = (originalSize > kChunkSizeMax) ? kChunkSizeMax : (DWORD)originalSize;
DWORD processed = 0;
BOOL res = WriteFile(p->handle, data, curSize, &processed, NULL);
data = (void *)((Byte *)data + processed);
data = (void *)((uint8_t*)data + processed);
originalSize -= processed;
*size += processed;
if (!res)