mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[NTOS]: Exit gently in MmCreateTeb if the call to MiCreatePebOrTeb failed. This is OK since the callers of MmCreateTeb check for its failure, and also perform cleanup & exit in accordance.
svn path=/trunk/; revision=71815
This commit is contained in:
@@ -757,7 +757,12 @@ MmCreateTeb(IN PEPROCESS Process,
|
||||
// Allocate the TEB
|
||||
//
|
||||
Status = MiCreatePebOrTeb(Process, sizeof(TEB), (PULONG_PTR)&Teb);
|
||||
ASSERT(NT_SUCCESS(Status));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* Cleanup and exit */
|
||||
KeDetachProcess();
|
||||
return Status;
|
||||
}
|
||||
|
||||
//
|
||||
// Use SEH in case we can't load the TEB
|
||||
|
||||
Reference in New Issue
Block a user