[2/2] mscoree: Implement ICorDebug CreateProcess
Alexandre Julliard
julliard at winehq.org
Mon Nov 7 07:07:32 CST 2011
Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:
> + {
> + HANDLE handle, thread;
> + DuplicateHandle(GetCurrentProcess(), lpProcessInformation->hProcess,
> + GetCurrentProcess(), &handle, 0, FALSE, DUPLICATE_SAME_ACCESS);
> + DuplicateHandle(GetCurrentProcess(), lpProcessInformation->hThread,
> + GetCurrentProcess(), &thread, 0, FALSE, DUPLICATE_SAME_ACCESS);
> + hr = CorDebugProcess_Create(This, (IUnknown**)&pDebugProcess,
> + lpProcessInformation->dwProcessId, handle, thread);
It would be better to duplicate the handles in CorDebugProcess_Create,
and of course check for error and return an appropriate failure.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list