implement user mode catchable exceptions, refactor system status codes to use NTLSTATUS_ prefix, update build scripts to use shared literal macros for linker arguments, update named queue lifetime cleanup to include KeNamedQueueUnpublishHandle.
This commit is contained in:
1 parent
1f5477cf66
commit
b7fcfce6f7
140 files changed
+7649
-3943
No files matched your search
@@ -58,7 +58,7 @@ static void fail(const char* what) {
|
||||
static void set_cwd_or_fail(const char* path, const char* what) {
|
||||
SYS_PATH_REQUEST req = { SysSvFromCstr(path) };
|
||||
uint32_t status = SysSetCwd(&req);
|
||||
if (status != STATUS_SUCCESS) fail_status(what, status);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status(what, status);
|
||||
}
|
||||
|
||||
// Verifies the current-directory PEB view against one native path.
|
||||
@@ -87,11 +87,11 @@ int main(void) {
|
||||
|
||||
SYS_PATH_REQUEST dirReq = { SysSvFromCstr(tempDir) };
|
||||
uint32_t status = SysRemoveDir(&dirReq);
|
||||
if (status != STATUS_SUCCESS && status != STATUS_NOT_FOUND)
|
||||
if (status != NTLSTATUS_SUCCESS && status != NTLSTATUS_NOT_FOUND)
|
||||
fail_status("remove stale temp dir", status);
|
||||
|
||||
status = SysCreateDir(&dirReq);
|
||||
if (status != STATUS_SUCCESS) fail_status("create temp dir", status);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status("create temp dir", status);
|
||||
|
||||
set_cwd_or_fail(tempDir, "set temp cwd");
|
||||
expect_cwd(tempDir);
|
||||
@@ -100,7 +100,7 @@ int main(void) {
|
||||
expect_cwd(rootPath);
|
||||
|
||||
status = SysRemoveDir(&dirReq);
|
||||
if (status != STATUS_SUCCESS) fail_status("remove temp dir", status);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status("remove temp dir", status);
|
||||
|
||||
print("cwd_peb_smoke: PASS\n");
|
||||
exit_now(0);
|
||||
|
||||
Reference in new issue
Block a user