mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-30 08:02:22 +00:00
(7z) Change Byte to uint8_t
This commit is contained in:
parent
ccf43f6e85
commit
520dbf598d
4
deps/7zip/7zFile.c
vendored
4
deps/7zip/7zFile.c
vendored
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user