#include <windows.h>
#include <fusion.h>
#include "wine/test.h"
Go to the source code of this file.
◆ HRESULT()
◆ init_functionpointers()
static BOOL init_functionpointers |
( |
void |
| ) |
|
|
static |
Definition at line 33 of file fusion.c.
34{
37
38 static const WCHAR szFusion[] = {
'f',
'u',
's',
'i',
'o',
'n',
'.',
'd',
'l',
'l',0};
39
42 {
43 win_skip(
"mscoree.dll not available\n");
45 }
46
48 if (!pLoadLibraryShim)
49 {
50 win_skip(
"LoadLibraryShim not available\n");
53 }
54
56
57 hr = pLoadLibraryShim(szFusion,
NULL,
NULL, &hfusion);
59 {
60 win_skip(
"fusion.dll not available\n");
63 }
64
67}
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Referenced by START_TEST().
◆ START_TEST()
Definition at line 194 of file fusion.c.
195{
197 return;
198
200
202}
static BOOL init_functionpointers(void)
static void test_GetCachePath(void)
◆ test_GetCachePath()
Definition at line 69 of file fusion.c.
70{
78
79 static const WCHAR backslash[] = {
'\\',0};
80 static const WCHAR nochange[] = {
'n',
'o',
'c',
'h',
'a',
'n',
'g',
'e',0};
81 static const WCHAR assembly[] = {
'a',
's',
's',
'e',
'm',
'b',
'l',
'y',0};
82 static const WCHAR gac[] = {
'G',
'A',
'C',0};
83
84 if (!pGetCachePath)
85 {
86 win_skip(
"GetCachePath not implemented\n");
87 return;
88 }
89
97
98
103 "Expected %d, got %d\n",
lstrlenW(cachepath) + 1,
size);
104
105
110 "Expected %d, got %d\n",
lstrlenW(cachepath) + 1,
size);
111
112
115
116
121
122
126 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
128
129
135
139
140
146 "Expected S_OK, got %08x\n",
hr);
149
150 if (pGetCORVersion)
151 {
156
158 {
159 lstrcpyA(nativeimgA,
"NativeImages_");
160#ifdef _WIN64
161 lstrcpyA(zapfmtA,
"%s\\%s\\%s%s_64");
162#else
163 lstrcpyA(zapfmtA,
"%s\\%s\\%s%s_32");
164#endif
165 }
166 else
167 {
168 lstrcpyA(nativeimgA,
"NativeImages1_");
170 }
171
174
175 wsprintfA(cachepathA, zapfmtA, windirA,
"assembly", nativeimgA, versionA);
177
178
182 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
184 }
185
186
192}
#define WideCharToMultiByte
#define MultiByteToWideChar
static const WCHAR version[]
UINT WINAPI GetWindowsDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
LPSTR WINAPI lstrcpyA(LPSTR lpString1, LPCSTR lpString2)
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
#define E_NOT_SUFFICIENT_BUFFER
int WINAPIV wsprintfA(_Out_ LPSTR, _In_ _Printf_format_string_ LPCSTR,...)
Referenced by START_TEST().
◆ cchBuffer
◆ dwLength
◆ hmscoree
◆ pcchPath
◆ phModDll
◆ pvReserved
◆ pwzCachePath
◆ szVersion