mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 08:08:47 -05:00
Fix MSVC compile error
This commit is contained in:
parent
e680d49774
commit
3d53c90d4b
@ -388,6 +388,9 @@ long WINAPI Win32ExceptionHandler(struct _EXCEPTION_POINTERS *pExceptInfo)
|
|||||||
|
|
||||||
std::string dumpfile = porting::path_user + DIR_DELIM PROJECT_NAME ".dmp";
|
std::string dumpfile = porting::path_user + DIR_DELIM PROJECT_NAME ".dmp";
|
||||||
|
|
||||||
|
std::string version_str(PROJECT_NAME " ");
|
||||||
|
version_str += g_version_hash;
|
||||||
|
|
||||||
HANDLE hFile = CreateFileA(dumpfile.c_str(), GENERIC_WRITE,
|
HANDLE hFile = CreateFileA(dumpfile.c_str(), GENERIC_WRITE,
|
||||||
FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
if (hFile == INVALID_HANDLE_VALUE)
|
if (hFile == INVALID_HANDLE_VALUE)
|
||||||
@ -400,9 +403,6 @@ long WINAPI Win32ExceptionHandler(struct _EXCEPTION_POINTERS *pExceptInfo)
|
|||||||
mdei.ExceptionPointers = pExceptInfo;
|
mdei.ExceptionPointers = pExceptInfo;
|
||||||
mdei.ThreadId = GetCurrentThreadId();
|
mdei.ThreadId = GetCurrentThreadId();
|
||||||
|
|
||||||
std::string version_str(PROJECT_NAME " ");
|
|
||||||
version_str += g_version_hash;
|
|
||||||
|
|
||||||
mdus.Type = CommentStreamA;
|
mdus.Type = CommentStreamA;
|
||||||
mdus.BufferSize = version_str.size();
|
mdus.BufferSize = version_str.size();
|
||||||
mdus.Buffer = (PVOID)version_str.c_str();
|
mdus.Buffer = (PVOID)version_str.c_str();
|
||||||
|
Loading…
Reference in New Issue
Block a user