ReactOS 0.4.16-dev-1983-g1a17364
_strlwr.c File Reference
#include <apitest.h>
#include <pseh/pseh2.h>
#include <ndk/umtypes.h>
Include dependency graph for _strlwr.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Typedefs

typedef char *(__cdeclPFN_strlwr) (char *_String)
 

Functions

static BOOL Init (void)
 
 START_TEST (_strlwr)
 

Variables

static PFN_strlwr p_strlwr
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file _strlwr.c.

Typedef Documentation

◆ PFN_strlwr

typedef char *(__cdecl * PFN_strlwr) (char *_String)

Definition at line 13 of file _strlwr.c.

Function Documentation

◆ Init()

static BOOL Init ( void  )
static

Definition at line 16 of file _strlwr.c.

17{
20 ok(p_strlwr != NULL, "Failed to load _strlwr from %s\n", TEST_DLL_NAME);
21 return (p_strlwr != NULL);
22}
static PFN_strlwr p_strlwr
Definition: _strlwr.c:14
char *(__cdecl * PFN_strlwr)(char *_String)
Definition: _strlwr.c:13
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define GetProcAddress(x, y)
Definition: compat.h:753
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
#define TEST_DLL_NAME
Definition: wsprintf.c:3
static PVOID hdll
Definition: shimdbg.c:126

Referenced by START_TEST().

◆ START_TEST()

START_TEST ( _strlwr  )

Definition at line 24 of file _strlwr.c.

25{
26 char *result;
27
28#ifndef TEST_STATIC_CRT
29 if (!Init())
30 {
31 skip("Skipping tests, because _strlwr is not available\n");
32 return;
33 }
34#endif
35
36 // The NT version of _strlwr does not have a NULL check
37 StartSeh()
40#ifdef TEST_NTDLL
42#else
44#endif
45}
static BOOL Init(void)
Definition: _strlwr.c:16
#define GetNTVersion()
Definition: apitest.h:17
#define StartSeh()
Definition: apitest.h:93
#define EndSeh(ExpectedStatus)
Definition: apitest.h:99
#define skip(...)
Definition: atltest.h:64
#define ok_ptr(expression, result)
Definition: atltest.h:108
#define STATUS_ACCESS_VIOLATION
GLuint64EXT * result
Definition: glext.h:11304
#define is_reactos()
Definition: test.h:1041
#define _WIN32_WINNT_VISTA
Definition: sdkddkver.h:25
#define STATUS_SUCCESS
Definition: shellext.h:65

Variable Documentation

◆ p_strlwr

PFN_strlwr p_strlwr
static

Definition at line 14 of file _strlwr.c.

Referenced by Init(), and START_TEST().