Win32: Fix build without -fpermissive

scancodes-fix
Nicolas Hake 2013-02-21 00:27:05 +01:00
parent e6df566ebe
commit e33521c7ab
1 changed files with 3 additions and 2 deletions

View File

@ -372,11 +372,12 @@ LONG WINAPI GenerateDump(EXCEPTION_POINTERS* pExceptionPointers)
MINIDUMP_USER_STREAM_INFORMATION user_stream_info = {0};
MINIDUMP_USER_STREAM user_stream = {0};
char build_id[] = OC_BUILD_ID;
if (OC_BUILD_ID[0] != '\0')
{
user_stream.Type = MDST_BuildId;
user_stream.Buffer = &OC_BUILD_ID;
user_stream.BufferSize = sizeof(OC_BUILD_ID);
user_stream.Buffer = build_id;
user_stream.BufferSize = sizeof(build_id) - 1; // don't need the terminating NUL
user_stream_info.UserStreamCount = 1;
user_stream_info.UserStreamArray = &user_stream;
}