server: A destroyed process handle table means that the process is terminating.
This commit is contained in:
parent
bfe3b3bdb6
commit
094e465790
|
@ -2061,7 +2061,6 @@ if (0)
|
|||
ret = DuplicateHandle(GetCurrentProcess(), hmap, pi.hProcess, &hmap_dup,
|
||||
0, FALSE, DUPLICATE_SAME_ACCESS);
|
||||
ok(!ret, "DuplicateHandle should fail\n");
|
||||
todo_wine
|
||||
ok(GetLastError() == ERROR_ACCESS_DENIED, "expected ERROR_ACCESS_DENIED, got %d\n", GetLastError());
|
||||
|
||||
offset.u.LowPart = 0;
|
||||
|
@ -2070,7 +2069,6 @@ todo_wine
|
|||
size = 0;
|
||||
ret = pNtMapViewOfSection(hmap, pi.hProcess, &addr, 0, 0, &offset,
|
||||
&size, 1 /* ViewShare */, 0, PAGE_READONLY);
|
||||
todo_wine
|
||||
ok(ret == STATUS_PROCESS_IS_TERMINATING, "expected STATUS_PROCESS_IS_TERMINATING, got %#x\n", ret);
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
|
|
|
@ -244,7 +244,7 @@ obj_handle_t alloc_handle_no_access_check( struct process *process, void *ptr, u
|
|||
if (attr & OBJ_INHERIT) access |= RESERVED_INHERIT;
|
||||
if (!process->handles)
|
||||
{
|
||||
set_error( STATUS_NO_MEMORY );
|
||||
set_error( STATUS_PROCESS_IS_TERMINATING );
|
||||
return 0;
|
||||
}
|
||||
return alloc_entry( process->handles, obj, access );
|
||||
|
|
Loading…
Reference in New Issue