mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
- Properly set and check the image notification flag for the process in DbgkCreateThread. Patch by hto.
See issue #1879 for more details. svn path=/trunk/; revision=25003
This commit is contained in:
@@ -104,10 +104,12 @@ DbgkCreateThread(PVOID StartAddress)
|
||||
PTEB Teb;
|
||||
PAGED_CODE();
|
||||
|
||||
/* Check if this process has already been notified */
|
||||
ProcessFlags = InterlockedAnd((PLONG)&Process->Flags,
|
||||
PSF_CREATE_REPORTED_BIT |
|
||||
PSF_IMAGE_NOTIFY_DONE_BIT);
|
||||
/* Try ORing in the create reported and image notify flags */
|
||||
ProcessFlags = InterlockedOr((PLONG)&Process->Flags,
|
||||
PSF_CREATE_REPORTED_BIT |
|
||||
PSF_IMAGE_NOTIFY_DONE_BIT);
|
||||
|
||||
/* Check if we were the first to set them or if another thread raced us */
|
||||
if (!(ProcessFlags & PSF_IMAGE_NOTIFY_DONE_BIT) && (PsImageNotifyEnabled))
|
||||
{
|
||||
/* It hasn't.. set up the image info for the process */
|
||||
|
||||
@@ -49,7 +49,7 @@ Main(VOID)
|
||||
&ClientId);
|
||||
Status = DbgUiDebugActiveProcess(hProcess);
|
||||
#else
|
||||
Error = DebugActiveProcess(2648);
|
||||
Error = DebugActiveProcess(168);
|
||||
#endif
|
||||
|
||||
#if NATIVE
|
||||
|
||||
Reference in New Issue
Block a user