}
}
-static uint32_t parse_chunk_size(const char *optarg)
+static uint32_t parse_chunk_size(const tchar *optarg)
{
- char *tmp;
- unsigned long chunk_size = strtoul(optarg, &tmp, 10);
+ tchar *tmp;
+ unsigned long chunk_size = tstrtoul(optarg, &tmp, 10);
if (chunk_size >= UINT32_MAX || *tmp || tmp == optarg) {
imagex_error(T("Chunk size must be a non-negative integer!"));
return UINT32_MAX;
len = min(len, lte->size - import_ctx->offset);
- if (read_partial_wim_resource_into_buf(lte, len, import_ctx->offset, data))
+ if (read_partial_wim_stream_into_buf(lte, len, import_ctx->offset, data))
return ERROR_READ_FAULT;
import_ctx->offset += len;