Minor fixes and debug helpers to track externs.
This commit is contained in:
@@ -27,6 +27,7 @@ namespace xboxkrnl {
|
||||
|
||||
void xeKeBugCheckEx(uint32_t code, uint32_t param1, uint32_t param2, uint32_t param3, uint32_t param4) {
|
||||
XELOGD("*** STOP: 0x%.8X (0x%.8X, 0x%.8X, 0x%.8X, 0x%.8X)", code, param1, param2, param3, param4);
|
||||
fflush(stdout);
|
||||
DebugBreak();
|
||||
XEASSERTALWAYS();
|
||||
}
|
||||
|
||||
@@ -931,6 +931,8 @@ int xe_xex2_get_import_infos(xe_xex2_ref xex,
|
||||
info_count * sizeof(xe_xex2_import_info_t));
|
||||
XEEXPECTNOTNULL(infos);
|
||||
|
||||
XEASSERTNOTZERO(info_count);
|
||||
|
||||
// Construct infos.
|
||||
for (size_t n = 0, i = 0; n < library->record_count; n++) {
|
||||
const uint32_t record = library->records[n];
|
||||
|
||||
Reference in New Issue
Block a user