#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <spoolss.h>
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 15 of file ReallocSplStr.c.
17 const WCHAR wszTestString1[] =
L"Test";
18 const WCHAR wszTestString2[] =
L"New";
48 ok(pwszTest ==
NULL,
"pwszTest is %p\n", pwszTest);
51 pwszBackup = pwszTest;
52 ok(
ReallocSplStr(&pwszTest, wszTestString2),
"ReallocSplStr is FALSE!\n");
53 ok(
wcscmp(pwszTest, wszTestString2) == 0,
"New string was not copied into pwszTest!\n");
57 dwResult = (
DWORD)
wcscmp(pwszBackup, wszTestString1);
PWSTR WINAPI AllocSplStr(PCWSTR pwszInput)
#define EXCEPTION_ACCESS_VIOLATION
DWORD WINAPI GetLastError(VOID)
BOOL WINAPI ReallocSplStr(PWSTR *ppwszString, PCWSTR pwszInput)
#define EXCEPTION_EXECUTE_HANDLER
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define _SEH2_EXCEPT(...)
#define _SEH2_GetExceptionCode()