#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.
◆ sprintf
◆ WIN32_NO_STATUS
◆ PFN_sprintf
◆ 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
Referenced by START_TEST().
◆ START_TEST()
Definition at line 51 of file sprintf.c.
52{
56
57#ifndef TEST_STATIC_CRT
59 {
60 skip(
"Skipping tests, because sprintf is not available\n");
61 return;
62 }
63#endif
64
65
68#if defined(TEST_CRTDLL) || defined(TEST_USER32)
70#else
72#endif
73
77#if defined(TEST_CRTDLL) || defined(TEST_USER32)
79#else
81#endif
82
86#if defined(TEST_CRTDLL) || defined(TEST_USER32)
88#else
90#endif
91
92
96
100
104
108
112
116
117
121
125
129
133
137
141
143#ifdef TEST_USER32
146#else
149#endif
150
151
155
159
163
167
171
174#ifdef TEST_USER32
177#else
180#endif
182
185 {
186 skip(
"Guarded allocation failure\n");
187 return;
188 }
189
196
202
208
214
220#ifdef TEST_USER32
222#else
224#endif
225
230#ifdef TEST_USER32
232#else
234#endif
235
238#ifdef TEST_USER32
241#else
244#endif
246
249#ifdef TEST_USER32
252#else
255#endif
257
258
263#ifdef TEST_USER32
265#else
267#endif
268
271#ifdef TEST_USER32
274#else
277#endif
279
282#ifdef TEST_USER32
285#else
288#endif
290
292}
#define EndSeh(ExpectedStatus)
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define ok_int(expression, result)
#define STATUS_ACCESS_VIOLATION
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define _WIN32_WINNT_VISTA
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
◆ p_sprintf