winpr/libwinpr/nt/test/TestNtCurrentTeb.c
raw| 1 | |
| 2 | #include <stdio.h> |
| 3 | |
| 4 | #include <winpr/nt.h> |
| 5 | |
| 6 | int TestNtCurrentTeb(int argc, char* argv[]) |
| 7 | { |
| 8 | #ifndef _WIN32 |
| 9 | PTEB teb = nullptr; |
| 10 | |
| 11 | teb = NtCurrentTeb(); |
| 12 | |
| 13 | if (!teb) |
| 14 | { |
| 15 | printf("NtCurrentTeb() returned nullptr\n"); |
| 16 | return -1; |
| 17 | } |
| 18 | #endif |
| 19 | |
| 20 | WINPR_UNUSED(argc); |
| 21 | WINPR_UNUSED(argv); |
| 22 | |
| 23 | return 0; |
| 24 | } |