From efdb571bf22033727f0d15bb161614686e5bcf66 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 25 Jun 2014 19:47:40 -0500 Subject: [PATCH] Use tchar for error file path --- include/wimlib.h | 2 +- src/util.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.43.0