--- branches/ros-branch-0_2_6/reactos/subsys/csrss/win32csr/conio.c 2005-03-23 17:23:02 UTC (rev 14290)
+++ branches/ros-branch-0_2_6/reactos/subsys/csrss/win32csr/conio.c 2005-03-23 17:23:36 UTC (rev 14291)
@@ -94,7 +94,8 @@
/* using OpenProcess is not optimal due to HANDLE vs. DWORD PIDs... */
Status = NtOpenProcess(&Process,
- PROCESS_DUP_HANDLE,
+ PROCESS_DUP_HANDLE | PROCESS_VM_OPERATION |
+ PROCESS_VM_WRITE | PROCESS_CREATE_THREAD,
&ObjectAttributes,
&ClientId);
if (!NT_SUCCESS(Status))
@@ -110,7 +111,7 @@
(PVOID) Event, 0, NULL);
if (NULL == Thread)
{
- DPRINT1("Failed thread creation\n");
+ DPRINT1("Failed thread creation (Error: 0x%x)\n", GetLastError());
CloseHandle(Process);
return;
}