Use RtlExitUserThread instead of NtTerminateThread, so the stack is properly freed.

svn path=/trunk/; revision=16377
This commit is contained in:
Filip Navara 2005-07-02 13:45:23 +00:00
parent f15bf7924f
commit 65ecbfa03d

View file

@ -165,7 +165,7 @@ ClientConnectionThread(HANDLE ServerPort)
/* Close the port and exit the thread */
NtClose(ServerPort);
NtTerminateThread(NtCurrentThread(), STATUS_SUCCESS);
RtlExitUserThread(STATUS_SUCCESS);
}
/**********************************************************************