#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <spoolss.h>
#include <pseh/pseh2.h>
Go to the source code of this file.
◆ STATUS_ACCESS_VIOLATION
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 19 of file ReallocSplStr.c.
20{
21 const WCHAR wszTestString1[] =
L"Test";
22 const WCHAR wszTestString2[] =
L"New";
23
27
28
30 {
31 dwResult = 0;
33 }
35 {
37 }
39
41
42
44 if (!pwszTest)
45 {
47 return;
48 }
49
50
52 ok(pwszTest ==
NULL,
"pwszTest is %p\n", pwszTest);
53
54
55 pwszBackup = pwszTest;
56 ok(
ReallocSplStr(&pwszTest, wszTestString2),
"ReallocSplStr is FALSE!\n");
57 ok(
wcscmp(pwszTest, wszTestString2) == 0,
"New string was not copied into pwszTest!\n");
58
60 {
61 dwResult = (
DWORD)
wcscmp(pwszBackup, wszTestString1);
62 }
64 {
66 }
68
70}
#define EXCEPTION_EXECUTE_HANDLER
#define EXCEPTION_ACCESS_VIOLATION
#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)