mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
[KMTEST]
Add a temp hack that allows to compile kmtest_drv with either the current incompatible object type data imports or with the fixed ones svn path=/trunk/; revision=63222
This commit is contained in:
parent
5a330ec787
commit
be359827c5
11 changed files with 152 additions and 12 deletions
|
@ -268,7 +268,14 @@ StartThread(
|
|||
InitializeObjectAttributes(&Attributes, NULL, OBJ_KERNEL_HANDLE, NULL, NULL);
|
||||
Status = PsCreateSystemThread(&ThreadData->Handle, GENERIC_ALL, &Attributes, NULL, NULL, AcquireResourceThread, ThreadData);
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
Status = ObReferenceObjectByHandle(ThreadData->Handle, SYNCHRONIZE, PsThreadType, KernelMode, (PVOID *)&ThreadData->Thread, NULL);
|
||||
Status = ObReferenceObjectByHandle(ThreadData->Handle, SYNCHRONIZE,
|
||||
#ifdef _PROPER_NT_EXPORTS
|
||||
*PsThreadType,
|
||||
#else
|
||||
PsThreadType,
|
||||
#endif
|
||||
|
||||
KernelMode, (PVOID *)&ThreadData->Thread, NULL);
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
return KeWaitForSingleObject(&ThreadData->OutEvent, Executive, KernelMode, FALSE, Timeout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue