From 6b8ba05d0f674ee7ec6e5c0f49d67cb132a7a671 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sun, 21 Jul 2019 20:36:43 +0200 Subject: [PATCH] oops in last minute "cleanup" --- src/utils/rclutil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/rclutil.cpp b/src/utils/rclutil.cpp index 3cae3bd7..9a65d9d6 100644 --- a/src/utils/rclutil.cpp +++ b/src/utils/rclutil.cpp @@ -117,14 +117,14 @@ string path_wingettempfilename(wchar_t *pref) utf8towchar(tdir, dbuf, MAX_PATH); wchar_t buf[MAX_PATH + 1]; GetTempFileNameW(dbuf, pref, 0, buf); + string filename; + wchartoutf8(buf, filename); // Windows will have created a temp file, we delete it. if (!DeleteFileW(buf)) { LOGSYSERR("path_wingettempfilename", "DeleteFileW", filename); } else { LOGDEB1("path_wingettempfilename: DeleteFile " << filename << " Ok\n"); } - string filename; - wchartoutf8(buf, filename); path_slashize(filename); return filename; }