#include <apitest.h>
#include <apitest_guard.h>
#include <stdio.h>
#include <tchar.h>
#include <pseh/pseh2.h>
#include <ndk/mmfuncs.h>
#include <ndk/rtlfuncs.h>
Go to the source code of this file.
|
| static BOOL | Init (void) |
| |
| | if (!Init()) |
| |
| | StartSeh () Length |
| |
| | EndSeh ((GetNTVersion() >=_WIN32_WINNT_VISTA) ? 0 :STATUS_ACCESS_VIOLATION) |
| |
| | ok_int (Length,(GetNTVersion() >=_WIN32_WINNT_VISTA) ? -1 :0) |
| |
| | EndSeh (STATUS_SUCCESS) |
| |
| | ok_int (Length,(GetNTVersion() >=_WIN32_WINNT_VISTA) ? -1 :5) |
| |
| | ok_str (Buffer, "abcde") |
| |
| | ok_int (Length, 5) |
| |
| | ok_str (Buffer, "%") |
| |
| | ok_int (Length, 1) |
| |
| | ok_str (Buffer, "") |
| |
| | ok_int (Length, 0) |
| |
| | ok_str (Buffer, "8") |
| |
| | ok_str (Buffer, "hello") |
| |
| | ok_str (Buffer, " hello") |
| |
| | ok_int (Length, 8) |
| |
| | ok_str (Buffer, "hello ") |
| |
| | ok_str (Buffer, "hell") |
| |
| | ok_int (Length, 4) |
| |
| | if (!String) |
| |
| | strcpy (String, "hello") |
| |
| | ok_str (Buffer, "hello!") |
| |
| | ok_int (Length, 6) |
| |
| | ok_str (Buffer, "hello! ") |
| |
| | FreeGuarded (String) |
| |
◆ sprintf
◆ WIN32_NO_STATUS
◆ PFN_sprintf
◆ EndSeh() [1/2]
◆ EndSeh() [2/2]
◆ FreeGuarded()
Referenced by START_TEST(), Test_RtlAreBitsClear(), Test_RtlAreBitsSet(), Test_RtlClearAllBits(), Test_RtlClearBits(), Test_RtlFindClearBits(), Test_RtlFindClearBitsAndSet(), Test_RtlFindNextForwardRunClear(), Test_RtlFindSetBits(), Test_RtlFindSetBitsAndClear(), Test_RtlNumberOfClearBits(), Test_RtlNumberOfSetBits(), Test_RtlSetAllBits(), Test_RtlSetBits(), TestGetUserObjectInfoA(), and TestGetUserObjectInfoW().
◆ if() [1/2]
Definition at line 62 of file sprintf.c.
63 {
64 skip(
"Skipping tests, because sprintf is not available\n");
65 return;
66 }
◆ if() [2/2]
Definition at line 188 of file sprintf.c.
189 {
190 skip(
"Guarded allocation failure\n");
191 return;
192 }
◆ Init()
Definition at line 34 of file sprintf.c.
35{
37#ifdef TEST_USER32
39#else
41#endif
44}
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
int(__cdecl * PFN_sprintf)(char *_Dest, const char *_Format,...)
static PFN_sprintf p_sprintf
◆ ok_int() [1/8]
◆ ok_int() [2/8]
◆ ok_int() [3/8]
◆ ok_int() [4/8]
◆ ok_int() [5/8]
◆ ok_int() [6/8]
◆ ok_int() [7/8]
◆ ok_int() [8/8]
◆ ok_str() [1/10]
◆ ok_str() [2/10]
◆ ok_str() [3/10]
◆ ok_str() [4/10]
◆ ok_str() [5/10]
◆ ok_str() [6/10]
◆ ok_str() [7/10]
◆ ok_str() [8/10]
◆ ok_str() [9/10]
◆ ok_str() [10/10]
◆ StartSeh()
◆ strcpy()
◆ Buffer
Initial value:{
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition at line 58 of file sprintf.c.
◆ Length
◆ p_sprintf
◆ String