Author: ion Date: Thu Nov 30 23:46:48 2006 New Revision: 25005
URL: http://svn.reactos.org/svn/reactos?rev=25005&view=rev Log: - 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.
Modified: trunk/reactos/ntoskrnl/dbgk/dbgkutil.c
Modified: trunk/reactos/ntoskrnl/dbgk/dbgkutil.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/dbgk/dbgkutil.c?re... ============================================================================== --- trunk/reactos/ntoskrnl/dbgk/dbgkutil.c (original) +++ trunk/reactos/ntoskrnl/dbgk/dbgkutil.c Thu Nov 30 23:46:48 2006 @@ -178,8 +178,8 @@ 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 @@ 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.