Paul Gofman gofmanp@gmail.com writes:
case PROC_THREAD_ATTRIBUTE_PARENT_PROCESS:parent = *(HANDLE *)attrs->attrs[i].value;TRACE("PROC_THREAD_ATTRIBUTE_PARENT_PROCESS parent %p.\n", parent);if (!parent)parent = INVALID_HANDLE_VALUE;
Using INVALID_HANDLE_VALUE for a process handle is probably not a good idea, especially since that's the same as GetCurrentProcess().