]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
Win32: compile
[wimlib] / programs / imagex.c
index 888f0e41e3dbe4f6df72a6dc9ca39c1e2b23ee51..c3187f74f94341a4b3bf089c134cde7c31a0c00c 100644 (file)
@@ -1276,10 +1276,10 @@ parse_num_threads(const tchar *optarg)
        }
 }
 
-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;