diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-03-27 15:16:41 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-03-27 15:16:41 -0400 |
commit | 3d53c90d4b34563ef27bc38da211dab91b72d321 (patch) | |
tree | 6d3784ac900c08e36bcdd5b6115121ac79652d77 /src | |
parent | e680d49774b0fa2d71ac5de12fb116fe9b886132 (diff) | |
download | minetest-3d53c90d4b34563ef27bc38da211dab91b72d321.tar.gz minetest-3d53c90d4b34563ef27bc38da211dab91b72d321.tar.bz2 minetest-3d53c90d4b34563ef27bc38da211dab91b72d321.zip |
Fix MSVC compile error
Diffstat (limited to 'src')
-rw-r--r-- | src/debug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index ecaf8c2a5..ae2ffadc3 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -388,6 +388,9 @@ long WINAPI Win32ExceptionHandler(struct _EXCEPTION_POINTERS *pExceptInfo) 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, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) @@ -400,9 +403,6 @@ long WINAPI Win32ExceptionHandler(struct _EXCEPTION_POINTERS *pExceptInfo) mdei.ExceptionPointers = pExceptInfo; mdei.ThreadId = GetCurrentThreadId(); - std::string version_str(PROJECT_NAME " "); - version_str += g_version_hash; - mdus.Type = CommentStreamA; mdus.BufferSize = version_str.size(); mdus.Buffer = (PVOID)version_str.c_str(); |