| 608 |
ofn.lpstrFile = fname; |
ofn.lpstrFile = fname; |
| 609 |
ofn.nMaxFile = _countof(fname); |
ofn.nMaxFile = _countof(fname); |
| 610 |
ofn.lpstrTitle = caption; |
ofn.lpstrTitle = caption; |
| 611 |
ofn.lpstrInitialDir = ToWcharA(work->pts->LogDefaultPath); |
ofn.lpstrInitialDir = work->pts->LogDefaultPathW; |
| 612 |
BOOL Ok = GetSaveFileNameW(&ofn); |
BOOL Ok = GetSaveFileNameW(&ofn); |
|
free((void *)ofn.lpstrInitialDir); |
|
| 613 |
free(caption); |
free(caption); |
| 614 |
free(FNFilter); |
free(FNFilter); |
| 615 |
if (Ok) { |
if (Ok) { |
| 1353 |
*/ |
*/ |
| 1354 |
wchar_t *FLogGetLogFilename(const wchar_t *log_filename) |
wchar_t *FLogGetLogFilename(const wchar_t *log_filename) |
| 1355 |
{ |
{ |
| 1356 |
char *logdir; |
const char *logdir = ToCharW(ts.LogDefaultPathW); |
|
|
|
|
if (strlen(ts.LogDefaultPath) > 0) { |
|
|
logdir = _strdup(ts.LogDefaultPath); |
|
|
} |
|
|
else { |
|
|
logdir = ToCharW(ts.LogDirW); |
|
|
} |
|
| 1357 |
|
|
| 1358 |
// 元となるファイル名 |
// 元となるファイル名 |
| 1359 |
char base_name[MAX_PATH]; |
char base_name[MAX_PATH]; |
| 1372 |
ParseStrftimeFileName(full_path, sizeof(full_path)); |
ParseStrftimeFileName(full_path, sizeof(full_path)); |
| 1373 |
ConvertLogname(full_path, sizeof(full_path)); |
ConvertLogname(full_path, sizeof(full_path)); |
| 1374 |
|
|
| 1375 |
free(logdir); |
free((void *)logdir); |
| 1376 |
return ToWcharA(full_path); |
return ToWcharA(full_path); |
| 1377 |
} |
} |
| 1378 |
|
|