void *out_buf;
bool out_buf_malloced;
u64 bytes_remaining;
- const size_t stack_max = 32768;
HANDLE hFile = win32_open_existing_file(lte->file_on_disk,
FILE_READ_DATA);
out_buf_malloced = false;
if (cb) {
- if (in_chunk_size <= stack_max) {
+ if (in_chunk_size <= STACK_MAX) {
out_buf = alloca(in_chunk_size);
} else {
out_buf = MALLOC(in_chunk_size);
ret = win32_get_encrypted_file_size(path, &encrypted_size);
if (ret)
goto out_free_spath;
- lte->resource_entry.original_size = encrypted_size;
+ lte->size = encrypted_size;
} else {
lte->resource_location = RESOURCE_IN_FILE_ON_DISK;
- lte->resource_entry.original_size = (u64)dat->StreamSize.QuadPart;
+ lte->size = (u64)dat->StreamSize.QuadPart;
}
u32 stream_id;