From a8c0cbb088d6c1f61f3f923a677f207df8ba60f0 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Mon, 8 Jun 2020 03:01:24 +0200 Subject: [PATCH] fix: use the right appdata path --- DalamudDebugStub/dllmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DalamudDebugStub/dllmain.cpp b/DalamudDebugStub/dllmain.cpp index 181815fee..37e475bd1 100644 --- a/DalamudDebugStub/dllmain.cpp +++ b/DalamudDebugStub/dllmain.cpp @@ -47,10 +47,10 @@ VectoredHandler( GetSystemTime(&t); _stprintf_s(fileName, _T("MD-%d-%d-%d-%d-%d-%d.dmp"), t.wYear, t.wMonth, t.wDay, t.wHour, t.wMinute, t.wSecond); - _tcscat_s(fullPath, 2048, TEXT("XIVLauncher\\")); + _tcscat_s(fullPath, 2048, TEXT("\\XIVLauncher\\")); _tcscat_s(fullPath, 2048, fileName); - HANDLE hFile = CreateFile(fullPath, GENERIC_READ | GENERIC_WRITE, + HANDLE hFile = CreateFileW(fullPath, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE))