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
167ab75f
Commit
167ab75f
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 StrStrIW from shlwapi.
parent
dff72b0c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
28 deletions
+12
-28
Makefile.in
dlls/mscoree/tests/Makefile.in
+1
-0
mscoree.c
dlls/mscoree/tests/mscoree.c
+11
-28
No files found.
dlls/mscoree/tests/Makefile.in
View file @
167ab75f
TESTDLL
=
mscoree.dll
IMPORTS
=
shlwapi
C_SRCS
=
\
metahost.c
\
...
...
dlls/mscoree/tests/mscoree.c
View file @
167ab75f
...
...
@@ -18,6 +18,7 @@
#include "corerror.h"
#include "mscoree.h"
#include "shlwapi.h"
#include "wine/test.h"
static
HMODULE
hmscoree
;
...
...
@@ -27,24 +28,6 @@ static HRESULT (WINAPI *pGetCORSystemDirectory)(LPWSTR, DWORD, DWORD*);
static
HRESULT
(
WINAPI
*
pGetRequestedRuntimeInfo
)(
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
,
LPWSTR
,
DWORD
,
DWORD
*
,
LPWSTR
,
DWORD
,
DWORD
*
);
static
HRESULT
(
WINAPI
*
pLoadLibraryShim
)(
LPCWSTR
,
LPCWSTR
,
LPVOID
,
HMODULE
*
);
static
WCHAR
tolowerW
(
WCHAR
ch
)
{
if
(
ch
>=
'A'
&&
ch
<=
'Z'
)
return
ch
|
32
;
else
return
ch
;
}
static
WCHAR
*
strstriW
(
const
WCHAR
*
str
,
const
WCHAR
*
sub
)
{
while
(
*
str
)
{
const
WCHAR
*
p1
=
str
,
*
p2
=
sub
;
while
(
*
p1
&&
*
p2
&&
tolowerW
(
*
p1
)
==
tolowerW
(
*
p2
))
{
p1
++
;
p2
++
;
}
if
(
!*
p2
)
return
(
WCHAR
*
)
str
;
str
++
;
}
return
NULL
;
}
static
BOOL
init_functionpointers
(
void
)
{
hmscoree
=
LoadLibraryA
(
"mscoree.dll"
);
...
...
@@ -181,8 +164,8 @@ static void test_loadlibraryshim(void)
GetModuleFileNameW
(
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
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
));
FreeLibrary
(
hdll
);
}
...
...
@@ -195,8 +178,8 @@ static void test_loadlibraryshim(void)
GetModuleFileNameW
(
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
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
));
FreeLibrary
(
hdll
);
}
...
...
@@ -211,8 +194,8 @@ static void test_loadlibraryshim(void)
GetModuleFileNameW
(
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
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
));
FreeLibrary
(
hdll
);
}
...
...
@@ -229,8 +212,8 @@ static void test_loadlibraryshim(void)
GetModuleFileNameW
(
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
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
));
FreeLibrary
(
hdll
);
}
...
...
@@ -242,8 +225,8 @@ static void test_loadlibraryshim(void)
GetModuleFileNameW
(
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
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
));
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