Merge pull request #2835 from RytoEX/crash-log-win-release-id
libobs: Add Windows 10 release version to crash logmaster
commit
d5d36b2f7a
|
@ -246,6 +246,8 @@ static inline void init_module_info(struct exception_handler_data *data)
|
||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern const char *get_win_release_id();
|
||||||
|
|
||||||
static inline void write_header(struct exception_handler_data *data)
|
static inline void write_header(struct exception_handler_data *data)
|
||||||
{
|
{
|
||||||
char date_time[80];
|
char date_time[80];
|
||||||
|
@ -260,18 +262,20 @@ static inline void write_header(struct exception_handler_data *data)
|
||||||
else
|
else
|
||||||
obs_bitness = "32";
|
obs_bitness = "32";
|
||||||
|
|
||||||
|
const char *release_id = get_win_release_id();
|
||||||
|
|
||||||
dstr_catf(&data->str,
|
dstr_catf(&data->str,
|
||||||
"Unhandled exception: %x\r\n"
|
"Unhandled exception: %x\r\n"
|
||||||
"Date/Time: %s\r\n"
|
"Date/Time: %s\r\n"
|
||||||
"Fault address: %" PRIX64 " (%s)\r\n"
|
"Fault address: %" PRIX64 " (%s)\r\n"
|
||||||
"libobs version: " OBS_VERSION " (%s-bit)\r\n"
|
"libobs version: " OBS_VERSION " (%s-bit)\r\n"
|
||||||
"Windows version: %d.%d build %d (revision: %d; "
|
"Windows version: %d.%d build %d (release: %s; revision: %d; "
|
||||||
"%s-bit)\r\n"
|
"%s-bit)\r\n"
|
||||||
"CPU: %s\r\n\r\n",
|
"CPU: %s\r\n\r\n",
|
||||||
data->exception->ExceptionRecord->ExceptionCode, date_time,
|
data->exception->ExceptionRecord->ExceptionCode, date_time,
|
||||||
data->main_trace.instruction_ptr, data->module_name.array,
|
data->main_trace.instruction_ptr, data->module_name.array,
|
||||||
obs_bitness, data->win_version.major, data->win_version.minor,
|
obs_bitness, data->win_version.major, data->win_version.minor,
|
||||||
data->win_version.build, data->win_version.revis,
|
data->win_version.build, release_id, data->win_version.revis,
|
||||||
is_64_bit_windows() ? "64" : "32", data->cpu_info.array);
|
is_64_bit_windows() ? "64" : "32", data->cpu_info.array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue