11#define WIN32_NO_STATUS
19#pragma warning(disable:4778)
20#elif defined(__GNUC__)
21#pragma GCC diagnostic ignored "-Wformat"
22#pragma GCC diagnostic ignored "-Wformat-zero-length"
23#pragma GCC diagnostic ignored "-Wnonnull"
25#pragma GCC diagnostic ignored "-Wformat-overflow"
29#ifndef TEST_STATIC_CRT
45#define sprintf p_sprintf
57#ifndef TEST_STATIC_CRT
60 skip(
"Skipping tests, because sprintf is not available\n");
68#if defined(TEST_CRTDLL) || defined(TEST_USER32)
77#if defined(TEST_CRTDLL) || defined(TEST_USER32)
86#if defined(TEST_CRTDLL) || defined(TEST_USER32)
186 skip(
"Guarded allocation failure\n");
#define EndSeh(ExpectedStatus)
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define ok_int(expression, result)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
_In_z_ _Printf_format_string_ char const *const _Format
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
#define STATUS_ACCESS_VIOLATION
int(__cdecl * PFN_sprintf)(char *_Dest, const char *_Format,...)
static PFN_sprintf p_sprintf
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define _WIN32_WINNT_VISTA
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String