26 &
StrU, &PathDividerFind, &PathDivider)))
28 skip(
"Failed to find path divider\n");
38 skip(
"Failed to append .Local\\\n");
54 ok_(__FILE__,
line)(RealLen == RealName->
Length,
"Expected Real %u, got %u\n",
56 ok_(__FILE__,
line)(ExpectLen == LocalName->
Length,
"Expected Local %u, got %u\n",
64#define ok_strings(Real, Local, Dll) ok_strings_(Real, Local, Dll, __LINE__)
86 RtlInitEmptyUnicodeString(&Str1, Buf1,
sizeof(Buf1));
87 RtlInitEmptyUnicodeString(&Str2, Buf2,
sizeof(Buf2));
93 cleanup(&Str1, Buf1,
sizeof(Buf1));
94 cleanup(&Str2, Buf2,
sizeof(Buf2));
101 cleanup(&Str1, Buf1,
sizeof(Buf1));
102 cleanup(&Str2, Buf2,
sizeof(Buf2));
108 cleanup(&Str1, Buf1,
sizeof(Buf1));
109 cleanup(&Str2, Buf2,
sizeof(Buf2));
115 cleanup(&Str1, Buf1,
sizeof(Buf1));
116 cleanup(&Str2, Buf2,
sizeof(Buf2));
122 cleanup(&Str1, Buf1,
sizeof(Buf1));
123 cleanup(&Str2, Buf2,
sizeof(Buf2));
129 cleanup(&Str1, Buf1,
sizeof(Buf1));
130 cleanup(&Str2, Buf2,
sizeof(Buf2));
136 cleanup(&Str1, Buf1,
sizeof(Buf1));
137 cleanup(&Str2, Buf2,
sizeof(Buf2));
143 cleanup(&Str1, Buf1,
sizeof(Buf1));
144 cleanup(&Str2, Buf2,
sizeof(Buf2));
151 cleanup(&Str1, Buf1,
sizeof(Buf1));
152 cleanup(&Str2, Buf2,
sizeof(Buf2));
158 cleanup(&Str1, Buf1,
sizeof(Buf1));
159 cleanup(&Str2, Buf2,
sizeof(Buf2));
165 cleanup(&Str1, Buf1,
sizeof(Buf1));
166 cleanup(&Str2, Buf2,
sizeof(Buf2));
172 cleanup(&Str1, Buf1,
sizeof(Buf1));
173 cleanup(&Str2, Buf2,
sizeof(Buf2));
179 cleanup(&Str1, Buf1,
sizeof(Buf1));
180 cleanup(&Str2, Buf2,
sizeof(Buf2));
188 trace(
"Allowing bug found in windows' implementation\n");
195 cleanup(&Str1, Buf1,
sizeof(Buf1));
196 cleanup(&Str2, Buf2,
sizeof(Buf2));
202 cleanup(&Str1, Buf1,
sizeof(Buf1));
203 cleanup(&Str2, Buf2,
sizeof(Buf2));
215 RtlInitEmptyUnicodeString(&Str1, Buf1,
sizeof(Buf1));
216 RtlInitEmptyUnicodeString(&Str2, Buf2,
sizeof(Buf2));
222 ok(Str1.
Buffer != Buf1,
"Expected a changed buffer\n");
223 ok(Str2.
Buffer != Buf2,
"Expected a changed buffer\n");
224 cleanup(&Str1, Buf1,
sizeof(Buf1));
225 cleanup(&Str2, Buf2,
sizeof(Buf2));
static WCHAR LocalDir[MAX_PATH+10]
static WCHAR ProcessDir[MAX_PATH]
static void ok_strings_(PCUNICODE_STRING RealName, PCUNICODE_STRING LocalName, LPCWSTR DllName, int line)
static BOOL InitTestData()
static void test_dllnames(void)
static void test_allocations(void)
#define ok_strings(Real, Local, Dll)
const UNICODE_STRING StrU
#define NT_SUCCESS(StatCode)
static void cleanup(void)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
NTSTATUS RtlAppendUnicodeToString(IN PUNICODE_STRING Str1, IN PWSTR Str2)
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
NTSYSAPI NTSTATUS NTAPI RtlComputePrivatizedDllName_U(_In_ PUNICODE_STRING DllName, _Inout_ PUNICODE_STRING RealName, _Inout_ PUNICODE_STRING LocalName)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define RTL_FIND_CHAR_IN_UNICODE_STRING_START_AT_END
NTSTATUS NTAPI RtlFindCharInUnicodeString(_In_ ULONG Flags, _In_ PCUNICODE_STRING SearchString, _In_ PCUNICODE_STRING MatchString, _Out_ PUSHORT Position)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define RTL_CONSTANT_STRING(s)
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize