#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
40 {
41 win_skip(
"mscoree.dll not available\n");
43 }
44
46 if (!pLoadLibraryShim)
47 {
48 win_skip(
"LoadLibraryShim not available\n");
51 }
52
54
55 hr = pLoadLibraryShim(
L"fusion.dll",
NULL,
NULL, &hfusion);
57 {
58 win_skip(
"fusion.dll not available\n");
61 }
62
65}
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Referenced by START_TEST().
◆ START_TEST()
Definition at line 186 of file fusion.c.
187{
189 return;
190
192
194}
static BOOL init_functionpointers(void)
static void test_GetCachePath(void)
◆ test_GetCachePath()
Definition at line 67 of file fusion.c.
68{
76
77 if (!pGetCachePath)
78 {
79 win_skip(
"GetCachePath not implemented\n");
80 return;
81 }
82
87
88
93 "Expected %d, got %ld\n",
lstrlenW(cachepath) + 1,
size);
94
95
100 "Expected %d, got %ld\n",
lstrlenW(cachepath) + 1,
size);
101
102
105
106
112
113
117 ok(
hr ==
S_OK,
"Expected S_OK, got %08lx\n",
hr);
119
120
127
130
131
137 "Expected S_OK, got %08lx\n",
hr);
140
141 if (pGetCORVersion)
142 {
147
149 {
150 lstrcpyA(nativeimgA,
"NativeImages_");
151#ifdef _WIN64
152 lstrcpyA(zapfmtA,
"%s\\%s\\%s%s_64");
153#else
154 lstrcpyA(zapfmtA,
"%s\\%s\\%s%s_32");
155#endif
156 }
157 else
158 {
159 lstrcpyA(nativeimgA,
"NativeImages1_");
161 }
162
165
166 wsprintfA(cachepathA, zapfmtA, windirA,
"assembly", nativeimgA, versionA);
168
169
173 ok(
hr ==
S_OK,
"Expected S_OK, got %08lx\n",
hr);
175 }
176
177
184}
#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)
int WINAPIV wsprintfA(_Out_ LPSTR, _In_ _Printf_format_string_ LPCSTR,...)
#define E_NOT_SUFFICIENT_BUFFER
Referenced by START_TEST().
◆ cchBuffer
◆ dwLength
◆ hmscoree
◆ pcchPath
◆ phModDll
◆ pvReserved
◆ pwzCachePath
◆ szVersion