]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use correct variable types for ASCII Windows functions. 50/head
authorMaurus Cuelenaere <mcuelenaere@gmail.com>
Mon, 16 Sep 2013 12:28:46 +0000 (14:28 +0200)
committerMaurus Cuelenaere <mcuelenaere@gmail.com>
Mon, 16 Sep 2013 12:34:09 +0000 (14:34 +0200)
There are both an ASCII and an Unicode variant for most of the Win32 API.
Fix some inconsistent uses.

libarchive/archive_match.c
libarchive/archive_write_disk_windows.c
libarchive/filter_fork_windows.c

index 6b6be9cb20b568afb99ef457a4199e467a17a8d8..6fb86445cd295825b0668455f38d62d0029e0660 100644 (file)
@@ -1152,7 +1152,7 @@ set_timefilter_pathname_mbs(struct archive_match *a, int timetype,
 {
        /* NOTE: stat() on Windows cannot handle nano seconds. */
        HANDLE h;
-       WIN32_FIND_DATA d;
+       WIN32_FIND_DATAA d;
 
        if (path == NULL || *path == '\0') {
                archive_set_error(&(a->archive), EINVAL, "pathname is empty");
index 0f0780a8e47e1bc4e009df4d87b65494d9b71b24..ed6200914fb8683a17653ff689bdb8bb26d78024 100644 (file)
@@ -525,7 +525,7 @@ la_GetFunctionKernel32(const char *name)
        static int set;
        if (!set) {
                set = 1;
-               lib = LoadLibrary("kernel32.dll");
+               lib = LoadLibrary(TEXT("kernel32.dll"));
        }
        if (lib == NULL) {
                fprintf(stderr, "Can't load kernel32.dll?!\n");
index fa59cc9e90ce22d12611ff99168c96941c97579e..ad271fe68a1536a5f97ff743ea7b753f117f9972 100644 (file)
@@ -36,7 +36,7 @@ __archive_create_child(const char *cmd, int *child_stdin, int *child_stdout)
 {
        HANDLE childStdout[2], childStdin[2],childStderr;
        SECURITY_ATTRIBUTES secAtts;
-       STARTUPINFO staInfo;
+       STARTUPINFOA staInfo;
        PROCESS_INFORMATION childInfo;
        struct archive_string cmdline;
        struct archive_string fullpath;