2 * PROJECT: ReactOS api tests
3 * LICENSE: GPLv2+ - See COPYING in the top level directory
4 * PURPOSE: Test spoiling of StaticUnicodeString by CreateProcessA
5 * PROGRAMMERS: Mark Jansen
10 #include <ndk/rtlfuncs.h>
12 START_TEST(CreateProcess
)
14 PUNICODE_STRING StaticString
;
15 UNICODE_STRING CompareString
;
18 PROCESS_INFORMATION pi
= {0};
21 StaticString
= &NtCurrentTeb()->StaticUnicodeString
;
22 RtlInitUnicodeString(&CompareString
, L
"--sentinel--");
23 RtlCopyUnicodeString(StaticString
, &CompareString
);
26 Process
= CreateProcessA("ApplicationName", "CommandLine", NULL
, NULL
, FALSE
, 0, NULL
, "CurrentDir", &si
, &pi
);
29 Result
= RtlCompareUnicodeString(StaticString
, &CompareString
, TRUE
);
30 ok(!Result
, "Expected %s to equal %s\n",
31 wine_dbgstr_wn(StaticString
->Buffer
, StaticString
->Length
/ sizeof(WCHAR
)),
32 wine_dbgstr_wn(CompareString
.Buffer
, CompareString
.Length
/ sizeof(WCHAR
)));