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
759f12c1
Commit
759f12c1
authored
Nov 22, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Use more A-functions to fix test failures on Win9x.
parent
167ab75f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
mscoree.c
dlls/mscoree/tests/mscoree.c
+19
-16
No files found.
dlls/mscoree/tests/mscoree.c
View file @
759f12c1
...
...
@@ -153,8 +153,9 @@ static void test_loadlibraryshim(void)
const
WCHAR
gdidll
[]
=
{
'g'
,
'd'
,
'i'
,
'3'
,
'2'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
HRESULT
hr
;
const
WCHAR
*
latest
=
NULL
;
CHAR
latestA
[
MAX_PATH
];
HMODULE
hdll
;
W
CHAR
dllpath
[
MAX_PATH
];
CHAR
dllpath
[
MAX_PATH
];
hr
=
pLoadLibraryShim
(
fusion
,
v1_1
,
NULL
,
&
hdll
);
ok
(
hr
==
S_OK
||
hr
==
E_HANDLE
,
"LoadLibraryShim failed, hr=%x
\n
"
,
hr
);
...
...
@@ -162,10 +163,10 @@ static void test_loadlibraryshim(void)
{
latest
=
v1_1
;
GetModuleFileName
W
(
hdll
,
dllpath
,
MAX_PATH
);
GetModuleFileName
A
(
hdll
,
dllpath
,
MAX_PATH
);
todo_wine
ok
(
StrStrI
W
(
dllpath
,
v1_1
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
ok
(
StrStrI
W
(
dllpath
,
fusiondll
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
todo_wine
ok
(
StrStrI
A
(
dllpath
,
"v1.1.4322"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
ok
(
StrStrI
A
(
dllpath
,
"fusion.dll"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
FreeLibrary
(
hdll
);
}
...
...
@@ -176,10 +177,10 @@ static void test_loadlibraryshim(void)
{
latest
=
v2_0
;
GetModuleFileName
W
(
hdll
,
dllpath
,
MAX_PATH
);
GetModuleFileName
A
(
hdll
,
dllpath
,
MAX_PATH
);
todo_wine
ok
(
StrStrI
W
(
dllpath
,
v2_0
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
ok
(
StrStrI
W
(
dllpath
,
fusiondll
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
todo_wine
ok
(
StrStrI
A
(
dllpath
,
"v2.0.50727"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
ok
(
StrStrI
A
(
dllpath
,
"fusion.dll"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
FreeLibrary
(
hdll
);
}
...
...
@@ -192,10 +193,10 @@ static void test_loadlibraryshim(void)
if
(
!
latest
)
latest
=
v4_0
;
GetModuleFileName
W
(
hdll
,
dllpath
,
MAX_PATH
);
GetModuleFileName
A
(
hdll
,
dllpath
,
MAX_PATH
);
todo_wine
ok
(
StrStrI
W
(
dllpath
,
v4_0
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
ok
(
StrStrI
W
(
dllpath
,
fusiondll
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
todo_wine
ok
(
StrStrI
A
(
dllpath
,
"v4.0.30319"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
ok
(
StrStrI
A
(
dllpath
,
"fusion.dll"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
FreeLibrary
(
hdll
);
}
...
...
@@ -205,15 +206,17 @@ static void test_loadlibraryshim(void)
if
(
SUCCEEDED
(
hr
))
FreeLibrary
(
hdll
);
WideCharToMultiByte
(
CP_ACP
,
0
,
latest
,
-
1
,
latestA
,
MAX_PATH
,
NULL
,
NULL
);
hr
=
pLoadLibraryShim
(
fusion
,
NULL
,
NULL
,
&
hdll
);
ok
(
hr
==
S_OK
,
"LoadLibraryShim failed, hr=%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
GetModuleFileName
W
(
hdll
,
dllpath
,
MAX_PATH
);
GetModuleFileName
A
(
hdll
,
dllpath
,
MAX_PATH
);
if
(
latest
)
todo_wine
ok
(
StrStrI
W
(
dllpath
,
latest
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
ok
(
StrStrI
W
(
dllpath
,
fusiondll
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
todo_wine
ok
(
StrStrI
A
(
dllpath
,
latestA
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
ok
(
StrStrI
A
(
dllpath
,
"fusion.dll"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
FreeLibrary
(
hdll
);
}
...
...
@@ -222,11 +225,11 @@ static void test_loadlibraryshim(void)
ok
(
hr
==
S_OK
,
"LoadLibraryShim failed, hr=%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
GetModuleFileName
W
(
hdll
,
dllpath
,
MAX_PATH
);
GetModuleFileName
A
(
hdll
,
dllpath
,
MAX_PATH
);
if
(
latest
)
todo_wine
ok
(
StrStrI
W
(
dllpath
,
latest
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
ok
(
StrStrI
W
(
dllpath
,
fusiondll
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
wine_dbgstr_w
(
dllpath
)
);
todo_wine
ok
(
StrStrI
A
(
dllpath
,
latestA
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
ok
(
StrStrI
A
(
dllpath
,
"fusion.dll"
)
!=
0
,
"incorrect fusion.dll path %s
\n
"
,
dllpath
);
FreeLibrary
(
hdll
);
}
...
...
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