/* Check that we were not called with an already existing Win32 thread info */
ptiCurrent = PsGetThreadWin32Thread(Thread);
- if (ptiCurrent)
- {
- ERR_CH(UserThread, "PsGetThreadWin32Thread returned non-NULL thread info!!\n");
- // return STATUS_SUCCESS;
- }
+ NT_ASSERT(ptiCurrent == NULL);
/* Allocate a new Win32 thread info */
ptiCurrent = ExAllocatePoolWithTag(NonPagedPool,
HBITMAP hPattern55AABitmap = NULL;
NTSTATUS Status;
-// Create Event for Diconnect Desktop.
+ NT_ASSERT(PsGetCurrentThreadWin32Thread() != NULL);
+
+// Create Event for Disconnect Desktop.
Status = UserCreateWinstaDirectory();
if (!NT_SUCCESS(Status)) return Status;
// Update Shared Device Caps.
// Initialize User Screen.
// }
-// Create ThreadInfo for this Thread!
-// {
- /* Initialize the current thread */
- Status = InitThreadCallback(PsGetCurrentThread());
- if (!NT_SUCCESS(Status)) return Status;
-
-// }
// Set Global SERVERINFO Error flags.
// Load Resources.