Use tchar for error file path
authorEric Biggers <ebiggers3@gmail.com>
Thu, 26 Jun 2014 00:47:40 +0000 (19:47 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 26 Jun 2014 00:47:40 +0000 (19:47 -0500)
include/wimlib.h
src/util.c

index 56b6c89398be69a9284dd82feef529cd72d21899..ea85cd0cfcb74a266a8c2c2b234e8f3445d091da 100644 (file)
@@ -3692,7 +3692,7 @@ wimlib_set_error_file(FILE *fp);
  *     wimlib was compiled using the <c>--without-error-messages</c> option.
  */
 extern int
-wimlib_set_error_file_by_name(const char *path);
+wimlib_set_error_file_by_name(const wimlib_tchar *path);
 
 /**
  * @ingroup G_modifying_wims
index 3bb78efb6a553036905b40d418885f5d1a6d9e2a..3b45ce6fa26626e8d9690151a1ee92f879d613c5 100644 (file)
@@ -205,12 +205,12 @@ wimlib_set_error_file(FILE *fp)
 }
 
 WIMLIBAPI int
-wimlib_set_error_file_by_name(const char *path)
+wimlib_set_error_file_by_name(const tchar *path)
 {
 #ifdef ENABLE_ERROR_MESSAGES
        FILE *fp;
 
-       fp = fopen(path, "a");
+       fp = tfopen(path, "a");
        if (!fp)
                return WIMLIB_ERR_OPEN;
        wimlib_set_error_file(fp);