mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
- Fix a bug in DbgkCreateThread which wasn't saving the initial thread information in the right place. The process create event is now fully supported and properly returns the entrypoint of the application.
svn path=/trunk/; revision=25005
This commit is contained in:
parent
3851db2429
commit
b41e5c3b6c
|
@ -178,8 +178,8 @@ DbgkCreateThread(PVOID StartAddress)
|
|||
if (!(ProcessFlags & PSF_CREATE_REPORTED_BIT))
|
||||
{
|
||||
/* Setup the information structure for the new thread */
|
||||
CreateThread->SubSystemKey = 0;
|
||||
CreateThread->StartAddress = NULL;
|
||||
CreateProcess->InitialThread.SubSystemKey = 0;
|
||||
CreateProcess->InitialThread.StartAddress = NULL;
|
||||
|
||||
/* And for the new process */
|
||||
CreateProcess->SubSystemKey = 0;
|
||||
|
@ -194,10 +194,9 @@ DbgkCreateThread(PVOID StartAddress)
|
|||
if (NtHeader)
|
||||
{
|
||||
/* Fill out data from the header */
|
||||
CreateThread->StartAddress = (PVOID)((ULONG_PTR)NtHeader->
|
||||
OptionalHeader.ImageBase +
|
||||
NtHeader->OptionalHeader.
|
||||
AddressOfEntryPoint);
|
||||
CreateProcess->InitialThread.StartAddress =
|
||||
(PVOID)((ULONG_PTR)NtHeader->OptionalHeader.ImageBase +
|
||||
NtHeader->OptionalHeader.AddressOfEntryPoint);
|
||||
CreateProcess->DebugInfoFileOffset = NtHeader->FileHeader.
|
||||
PointerToSymbolTable;
|
||||
CreateProcess->DebugInfoSize = NtHeader->FileHeader.
|
||||
|
|
Loading…
Reference in a new issue