mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
Try TChar
This commit is contained in:
parent
8cb4553165
commit
5ca1b356bc
1 changed files with 1 additions and 4 deletions
|
|
@ -71,11 +71,8 @@ static void CockatriceLogger(QtMsgType type, const QMessageLogContext &ctx, cons
|
|||
|
||||
LONG WINAPI CockatriceUnhandledExceptionFilter(EXCEPTION_POINTERS *pExceptionPointers)
|
||||
{
|
||||
const auto fileNameString = "cockatrice.crash." + std::to_string(std::time(0)) + ".dmp";
|
||||
const auto fileNameWString = std::wstring(fileNameString.begin(), fileNameString.end());
|
||||
|
||||
HANDLE hDumpFile =
|
||||
CreateFile(fileNameWString.c_str(), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
CreateFile(_T("cockatrice.crash.dmp"), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
|
||||
if (hDumpFile != INVALID_HANDLE_VALUE) {
|
||||
MINIDUMP_EXCEPTION_INFORMATION dumpInfo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue