Milestone 5: deliver embedded RDP sessions and lifecycle hardening
This commit is contained in:
24
third_party/FreeRDP/winpr/libwinpr/nt/test/TestNtCurrentTeb.c
vendored
Normal file
24
third_party/FreeRDP/winpr/libwinpr/nt/test/TestNtCurrentTeb.c
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <winpr/nt.h>
|
||||
|
||||
int TestNtCurrentTeb(int argc, char* argv[])
|
||||
{
|
||||
#ifndef _WIN32
|
||||
PTEB teb = nullptr;
|
||||
|
||||
teb = NtCurrentTeb();
|
||||
|
||||
if (!teb)
|
||||
{
|
||||
printf("NtCurrentTeb() returned nullptr\n");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
WINPR_UNUSED(argc);
|
||||
WINPR_UNUSED(argv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user