From: Eric Biggers Date: Thu, 26 Jun 2014 00:47:40 +0000 (-0500) Subject: Use tchar for error file path X-Git-Tag: v1.7.1~77 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=efdb571bf22033727f0d15bb161614686e5bcf66;ds=sidebyside Use tchar for error file path --- diff --git a/include/wimlib.h b/include/wimlib.h index 56b6c893..ea85cd0c 100644 --- a/include/wimlib.h +++ b/include/wimlib.h @@ -3692,7 +3692,7 @@ wimlib_set_error_file(FILE *fp); * wimlib was compiled using the --without-error-messages 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 diff --git a/src/util.c b/src/util.c index 3bb78efb..3b45ce6f 100644 --- a/src/util.c +++ b/src/util.c @@ -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);