#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <spoolss.h>
#include <pseh/pseh2.h>
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 17 of file ReallocSplStr.c.
18{
19 const WCHAR wszTestString1[] =
L"Test";
20 const WCHAR wszTestString2[] =
L"New";
21
25
26
28 {
29 dwResult = 0;
31 }
33 {
35 }
37
39
40
42 if (!pwszTest)
43 {
45 return;
46 }
47
48
50 ok(pwszTest ==
NULL,
"pwszTest is %p\n", pwszTest);
51
52
53 pwszBackup = pwszTest;
54 ok(
ReallocSplStr(&pwszTest, wszTestString2),
"ReallocSplStr is FALSE!\n");
55 ok(
wcscmp(pwszTest, wszTestString2) == 0,
"New string was not copied into pwszTest!\n");
56
58 {
59 dwResult = (
DWORD)
wcscmp(pwszBackup, wszTestString1);
60 }
62 {
64 }
66
68}
#define EXCEPTION_EXECUTE_HANDLER
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
PWSTR WINAPI AllocSplStr(PCWSTR pwszInput)
BOOL WINAPI ReallocSplStr(PWSTR *ppwszString, PCWSTR pwszInput)
DWORD WINAPI GetLastError(void)
#define EXCEPTION_ACCESS_VIOLATION