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
a839e2ec
Commit
a839e2ec
authored
Oct 10, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Skip more tests on too old shlwapi.dll.
parent
f896b5eb
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
2 deletions
+37
-2
clist.c
dlls/shlwapi/tests/clist.c
+11
-2
clsid.c
dlls/shlwapi/tests/clsid.c
+7
-0
ordinal.c
dlls/shlwapi/tests/ordinal.c
+6
-0
path.c
dlls/shlwapi/tests/path.c
+6
-0
shreg.c
dlls/shlwapi/tests/shreg.c
+7
-0
No files found.
dlls/shlwapi/tests/clist.c
View file @
a839e2ec
...
...
@@ -212,10 +212,16 @@ static HRESULT (WINAPI *pSHLWAPI_213)(_IDummyStream*);
static
HRESULT
(
WINAPI
*
pSHLWAPI_214
)(
_IDummyStream
*
,
ULARGE_INTEGER
*
);
static
void
InitFunctionPtrs
(
void
)
static
BOOL
InitFunctionPtrs
(
void
)
{
SHLWAPI_hshlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
/* SHCreateStreamOnFileEx was introduced in shlwapi v6.0 */
if
(
!
GetProcAddress
(
SHLWAPI_hshlwapi
,
"SHCreateStreamOnFileEx"
)){
win_skip
(
"Too old shlwapi version
\n
"
);
return
FALSE
;
}
pSHLWAPI_17
=
(
void
*
)
GetProcAddress
(
SHLWAPI_hshlwapi
,
(
LPSTR
)
17
);
ok
(
pSHLWAPI_17
!=
0
,
"No Ordinal 17
\n
"
);
pSHLWAPI_18
=
(
void
*
)
GetProcAddress
(
SHLWAPI_hshlwapi
,
(
LPSTR
)
18
);
...
...
@@ -238,6 +244,8 @@ static void InitFunctionPtrs(void)
ok
(
pSHLWAPI_213
!=
0
,
"No Ordinal 213
\n
"
);
pSHLWAPI_214
=
(
void
*
)
GetProcAddress
(
SHLWAPI_hshlwapi
,
(
LPSTR
)
214
);
ok
(
pSHLWAPI_214
!=
0
,
"No Ordinal 214
\n
"
);
return
TRUE
;
}
static
void
InitDummyStream
(
_IDummyStream
*
iface
)
...
...
@@ -623,7 +631,8 @@ static void test_SHLWAPI_214(void)
START_TEST
(
clist
)
{
InitFunctionPtrs
();
if
(
!
InitFunctionPtrs
())
return
;
test_CList
();
...
...
dlls/shlwapi/tests/clsid.c
View file @
a839e2ec
...
...
@@ -185,6 +185,13 @@ static void test_CLSIDFromProgIDWrap(void)
START_TEST
(
clsid
)
{
hShlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
/* SHCreateStreamOnFileEx was introduced in shlwapi v6.0 */
if
(
!
GetProcAddress
(
hShlwapi
,
"SHCreateStreamOnFileEx"
)){
win_skip
(
"Too old shlwapi version
\n
"
);
return
;
}
pSHLWAPI_269
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
269
);
pSHLWAPI_23
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
23
);
...
...
dlls/shlwapi/tests/ordinal.c
View file @
a839e2ec
...
...
@@ -2770,6 +2770,12 @@ START_TEST(ordinal)
is_win2k_and_lower
=
GetProcAddress
(
hShlwapi
,
"StrChrNW"
)
==
0
;
is_win9x
=
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
99
)
==
0
;
/* StrCpyNXA */
/* SHCreateStreamOnFileEx was introduced in shlwapi v6.0 */
if
(
!
GetProcAddress
(
hShlwapi
,
"SHCreateStreamOnFileEx"
)){
win_skip
(
"Too old shlwapi version
\n
"
);
return
;
}
init_pointers
();
hmlang
=
LoadLibraryA
(
"mlang.dll"
);
...
...
dlls/shlwapi/tests/path.c
View file @
a839e2ec
...
...
@@ -1362,6 +1362,12 @@ START_TEST(path)
{
HMODULE
hShlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
/* SHCreateStreamOnFileEx was introduced in shlwapi v6.0 */
if
(
!
GetProcAddress
(
hShlwapi
,
"SHCreateStreamOnFileEx"
)){
win_skip
(
"Too old shlwapi version
\n
"
);
return
;
}
pPathCreateFromUrlA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"PathCreateFromUrlA"
);
pPathCreateFromUrlW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"PathCreateFromUrlW"
);
pPathCombineW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"PathCombineW"
);
...
...
dlls/shlwapi/tests/shreg.c
View file @
a839e2ec
...
...
@@ -452,6 +452,13 @@ START_TEST(shreg)
if
(
!
hkey
)
return
;
hshlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
/* SHCreateStreamOnFileEx was introduced in shlwapi v6.0 */
if
(
!
GetProcAddress
(
hshlwapi
,
"SHCreateStreamOnFileEx"
)){
win_skip
(
"Too old shlwapi version
\n
"
);
return
;
}
pSHCopyKeyA
=
(
SHCopyKeyA_func
)
GetProcAddress
(
hshlwapi
,
"SHCopyKeyA"
);
pSHRegGetPathA
=
(
SHRegGetPathA_func
)
GetProcAddress
(
hshlwapi
,
"SHRegGetPathA"
);
pSHRegGetValueA
=
(
SHRegGetValueA_func
)
GetProcAddress
(
hshlwapi
,
"SHRegGetValueA"
);
...
...
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