Commit 5f9ceffb authored by mercury233's avatar mercury233

fix

parent f548456a
...@@ -29,7 +29,7 @@ void Replay::BeginRecord() { ...@@ -29,7 +29,7 @@ void Replay::BeginRecord() {
time_t nowtime = time(NULL); time_t nowtime = time(NULL);
struct tm *localedtime = localtime(&nowtime); struct tm *localedtime = localtime(&nowtime);
wchar_t tmppath[80]; wchar_t tmppath[80];
wcsftime(tmppath, 80, "./replay/%Y-%m-%d %H-%M-%S %%u.yrp", localedtime); wcsftime(tmppath, 80, L"./replay/%Y-%m-%d %H-%M-%S %%u.yrp", localedtime);
wchar_t path[80]; wchar_t path[80];
myswprintf(path, tmppath, ygo::aServerPort); myswprintf(path, tmppath, ygo::aServerPort);
recording_fp = CreateFileW(path, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_FLAG_WRITE_THROUGH, NULL); recording_fp = CreateFileW(path, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_FLAG_WRITE_THROUGH, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment