diff --git a/reactos/subsys/csrss/win32csr/conio.c b/reactos/subsys/csrss/win32csr/conio.c index a9d5f6b8bbf..cffb26cb106 100644 --- a/reactos/subsys/csrss/win32csr/conio.c +++ b/reactos/subsys/csrss/win32csr/conio.c @@ -94,7 +94,8 @@ ConioConsoleCtrlEvent(DWORD Event, PCSRSS_PROCESS_DATA ProcessData) /* 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 @@ ConioConsoleCtrlEvent(DWORD Event, PCSRSS_PROCESS_DATA ProcessData) (PVOID) Event, 0, NULL); if (NULL == Thread) { - DPRINT1("Failed thread creation\n"); + DPRINT1("Failed thread creation (Error: 0x%x)\n", GetLastError()); CloseHandle(Process); return; }