oops in last minute "cleanup"
This commit is contained in:
parent
049ba1e7e4
commit
3681e997e0
@ -117,14 +117,14 @@ string path_wingettempfilename(wchar_t *pref)
|
|||||||
utf8towchar(tdir, dbuf, MAX_PATH);
|
utf8towchar(tdir, dbuf, MAX_PATH);
|
||||||
wchar_t buf[MAX_PATH + 1];
|
wchar_t buf[MAX_PATH + 1];
|
||||||
GetTempFileNameW(dbuf, pref, 0, buf);
|
GetTempFileNameW(dbuf, pref, 0, buf);
|
||||||
|
string filename;
|
||||||
|
wchartoutf8(buf, filename);
|
||||||
// Windows will have created a temp file, we delete it.
|
// Windows will have created a temp file, we delete it.
|
||||||
if (!DeleteFileW(buf)) {
|
if (!DeleteFileW(buf)) {
|
||||||
LOGSYSERR("path_wingettempfilename", "DeleteFileW", filename);
|
LOGSYSERR("path_wingettempfilename", "DeleteFileW", filename);
|
||||||
} else {
|
} else {
|
||||||
LOGDEB1("path_wingettempfilename: DeleteFile " << filename << " Ok\n");
|
LOGDEB1("path_wingettempfilename: DeleteFile " << filename << " Ok\n");
|
||||||
}
|
}
|
||||||
string filename;
|
|
||||||
wchartoutf8(buf, filename);
|
|
||||||
path_slashize(filename);
|
path_slashize(filename);
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user