Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a89bd3f5
Commit
a89bd3f5
authored
Feb 06, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion/tests: Fix some test failures on systems with .NET 1.1.
parent
cf9f4dfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
14 deletions
+27
-14
fusion.c
dlls/fusion/tests/fusion.c
+27
-14
No files found.
dlls/fusion/tests/fusion.c
View file @
a89bd3f5
...
...
@@ -144,13 +144,37 @@ static void test_GetCachePath(void)
"Expected HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), got %08x
\n
"
,
hr
);
ok_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
nochange
,
path
);
lstrcpyW
(
cachepath
,
windir
);
lstrcatW
(
cachepath
,
backslash
);
lstrcatW
(
cachepath
,
assembly
);
/* ASM_CACHE_ROOT */
lstrcpyW
(
path
,
nochange
);
size
=
MAX_PATH
;
hr
=
pGetCachePath
(
ASM_CACHE_ROOT
,
path
,
&
size
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_INVALIDARG
),
/* .NET 1.1 */
"Expected S_OK, got %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
ok_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
cachepath
,
path
);
if
(
pGetCORVersion
)
{
CHAR
versionA
[
MAX_PATH
];
CHAR
cachepathA
[
MAX_PATH
];
static
const
CHAR
nativeimgA
[]
=
"NativeImages_"
;
static
const
CHAR
zapfmtA
[]
=
"%s
\\
%s
\\
%s%s_32"
;
CHAR
nativeimgA
[
MAX_PATH
];
CHAR
zapfmtA
[
MAX_PATH
];
if
(
hr
==
S_OK
)
{
lstrcpyA
(
nativeimgA
,
"NativeImages_"
);
lstrcpyA
(
zapfmtA
,
"%s
\\
%s
\\
%s%s_32"
);
}
else
{
lstrcpyA
(
nativeimgA
,
"NativeImages1_"
);
lstrcpyA
(
zapfmtA
,
"%s
\\
%s
\\
%s%s"
);
}
pGetCORVersion
(
version
,
MAX_PATH
,
&
size
);
WideCharToMultiByte
(
CP_ACP
,
0
,
version
,
-
1
,
versionA
,
MAX_PATH
,
0
,
0
);
...
...
@@ -166,17 +190,6 @@ static void test_GetCachePath(void)
ok_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
cachepath
,
path
);
}
lstrcpyW
(
cachepath
,
windir
);
lstrcatW
(
cachepath
,
backslash
);
lstrcatW
(
cachepath
,
assembly
);
/* ASM_CACHE_ROOT */
lstrcpyW
(
path
,
nochange
);
size
=
MAX_PATH
;
hr
=
pGetCachePath
(
ASM_CACHE_ROOT
,
path
,
&
size
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
cachepath
,
path
);
/* two flags at once */
lstrcpyW
(
path
,
nochange
);
size
=
MAX_PATH
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment