ReactOS 0.4.16-dev-1983-g1a17364
_wcslwr.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS API tests
3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4 * PURPOSE: Tests for _wcslwr
5 * COPYRIGHT: Copyright 2025 Timo Kreuzer (timo.kreuzer@reactos.org)
6 */
7
8#define WIN32_NO_STATUS
9#include <apitest.h>
10#include <pseh/pseh2.h>
11#include <ndk/umtypes.h>
12
13typedef wchar_t* (__cdecl *PFN_wcslwr)(wchar_t* _String);
15
16static BOOL Init(void)
17{
20 ok(p_wcslwr != NULL, "Failed to load _wcslwr from %s\n", TEST_DLL_NAME);
21 return (p_wcslwr != NULL);
22}
23
25{
26 wchar_t *result;
27
28#ifndef TEST_STATIC_CRT
29 if (!Init())
30 {
31 skip("Skipping tests, because _wcslwr is not available\n");
32 return;
33 }
34#endif
35
36 // The NT version of _wcslwr has a NULL check (as opposed to _wcsupr)
37 StartSeh()
41}
wchar_t *(__cdecl * PFN_wcslwr)(wchar_t *_String)
Definition: _wcslwr.c:13
static BOOL Init(void)
Definition: _wcslwr.c:16
static PFN_wcslwr p_wcslwr
Definition: _wcslwr.c:14
#define __cdecl
Definition: accygwin.h:79
#define GetNTVersion()
Definition: apitest.h:17
#define StartSeh()
Definition: apitest.h:93
#define EndSeh(ExpectedStatus)
Definition: apitest.h:99
#define ok(value,...)
Definition: atltest.h:57
#define skip(...)
Definition: atltest.h:64
#define START_TEST(x)
Definition: atltest.h:75
#define ok_ptr(expression, result)
Definition: atltest.h:108
_wcslwr
_String
#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
unsigned int BOOL
Definition: ntddk_ex.h:94
#define STATUS_ACCESS_VIOLATION
GLuint64EXT * result
Definition: glext.h:11304
#define TEST_DLL_NAME
Definition: wsprintf.c:3
#define is_reactos()
Definition: test.h:1041
#define _WIN32_WINNT_VISTA
Definition: sdkddkver.h:25
#define STATUS_SUCCESS
Definition: shellext.h:65
static PVOID hdll
Definition: shimdbg.c:126