clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// Native exception runtime smoke test. This file verifies process-start registration and handler dispatch.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <ntlite/exception.h>
|
||||
@@ -47,7 +48,7 @@ static void fail(const char* message) {
|
||||
}
|
||||
|
||||
// Fails the test with one status value.
|
||||
static void fail_status(const char* what, uint32_t status) {
|
||||
static void fail_status(const char* what, KSTATUS status) {
|
||||
print("native_exception_runtime_smoke: ");
|
||||
print(what);
|
||||
print(" status=");
|
||||
@@ -77,7 +78,7 @@ static void verify_startup_registration(void) {
|
||||
((char*)&request)[i] = 0;
|
||||
request.Size = sizeof(request);
|
||||
|
||||
uint32_t status = SysGetExceptionDispatcher(&request);
|
||||
KSTATUS status = SysGetExceptionDispatcher(&request);
|
||||
if (status != NTLSTATUS_SUCCESS)
|
||||
fail_status("get dispatcher", status);
|
||||
if (!request.DispatcherRoutine)
|
||||
@@ -97,7 +98,7 @@ static void verify_breakpoint_record(SYS_EXCEPTION_RECORD* record, SYS_USER_CONT
|
||||
}
|
||||
|
||||
// Records a first-chance exception and asks the dispatcher to continue searching.
|
||||
static int search_handler(SYS_EXCEPTION_RECORD* record, SYS_USER_CONTEXT* context, void* userContext) {
|
||||
static uint32_t search_handler(SYS_EXCEPTION_RECORD* record, SYS_USER_CONTEXT* context, void* userContext) {
|
||||
if (userContext != (void*)(uintptr_t)0x1111)
|
||||
fail("search handler context mismatch");
|
||||
verify_breakpoint_record(record, context);
|
||||
@@ -106,7 +107,7 @@ static int search_handler(SYS_EXCEPTION_RECORD* record, SYS_USER_CONTEXT* contex
|
||||
}
|
||||
|
||||
// Records a first-chance exception and asks the kernel to resume the saved context.
|
||||
static int continue_handler(SYS_EXCEPTION_RECORD* record, SYS_USER_CONTEXT* context, void* userContext) {
|
||||
static uint32_t continue_handler(SYS_EXCEPTION_RECORD* record, SYS_USER_CONTEXT* context, void* userContext) {
|
||||
if (userContext != (void*)(uintptr_t)0x2222)
|
||||
fail("continue handler context mismatch");
|
||||
verify_breakpoint_record(record, context);
|
||||
|
||||
Reference in new issue
Block a user