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
86ad22bf
Commit
86ad22bf
authored
Mar 16, 2005
by
Jon Griffiths
Committed by
Alexandre Julliard
Mar 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two failures and (hopefully) a crash with early versions.
parent
2786964d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
clist.c
dlls/shlwapi/tests/clist.c
+22
-11
No files found.
dlls/shlwapi/tests/clist.c
View file @
86ad22bf
...
...
@@ -367,8 +367,12 @@ static void test_CList(void)
inserted
->
ulSize
=
sizeof
(
SHLWAPI_CLIST
)
-
1
;
inserted
->
ulId
=
33
;
hRet
=
pSHLWAPI_20
(
&
list
,
inserted
);
/* The call succeeds but the item is not inserted */
/* The call succeeds but the item is not inserted, except on some early
* versions which return failure. Wine behaves like later versions.
*/
#if 0
ok(hRet == S_OK, "failed bad element size\n");
#endif
inserted
=
pSHLWAPI_22
(
list
,
33
);
ok
(
inserted
==
NULL
,
"inserted bad element size
\n
"
);
...
...
@@ -376,9 +380,10 @@ static void test_CList(void)
inserted
->
ulSize
=
44
;
inserted
->
ulId
=
~
0UL
;
hRet
=
pSHLWAPI_20
(
&
list
,
inserted
);
/* The call succeeds but the item is not inserted */
/* See comment above, some early versions fail this call */
#if 0
ok(hRet == S_OK, "failed adding a container\n");
#endif
item
=
SHLWAPI_CLIST_items
;
/* Look for nonexistent item in populated list */
...
...
@@ -474,18 +479,20 @@ static void test_CList(void)
pSHLWAPI_19
(
list
);
}
static
void
test_SHLWAPI_166
(
void
)
static
BOOL
test_SHLWAPI_166
(
void
)
{
_IDummyStream
streamobj
;
BOOL
bRet
;
if
(
!
pSHLWAPI_166
)
return
;
return
FALSE
;
InitDummyStream
(
&
streamobj
);
bRet
=
pSHLWAPI_166
(
&
streamobj
);
ok
(
bRet
==
TRUE
,
"failed before seek adjusted
\n
"
);
if
(
bRet
!=
TRUE
)
return
FALSE
;
/* This version doesn't support stream ops on clists */
ok
(
streamobj
.
readcalls
==
0
,
"called Read()
\n
"
);
ok
(
streamobj
.
writecalls
==
0
,
"called Write()
\n
"
);
ok
(
streamobj
.
seekcalls
==
0
,
"called Seek()
\n
"
);
...
...
@@ -525,6 +532,7 @@ static void test_SHLWAPI_166(void)
ok
(
streamobj
.
seekcalls
==
0
,
"Called Seek()
\n
"
);
ok
(
streamobj
.
statcalls
==
1
,
"wrong call count
\n
"
);
ok
(
streamobj
.
pos
.
QuadPart
==
50001
,
"called Seek() after read failed
\n
"
);
return
TRUE
;
}
static
void
test_SHLWAPI_184
(
void
)
...
...
@@ -621,11 +629,14 @@ START_TEST(clist)
test_CList
();
test_SHLWAPI_166
();
test_SHLWAPI_184
();
test_SHLWAPI_212
();
test_SHLWAPI_213
();
test_SHLWAPI_214
();
/* Test streaming if this version supports it */
if
(
test_SHLWAPI_166
())
{
test_SHLWAPI_184
();
test_SHLWAPI_212
();
test_SHLWAPI_213
();
test_SHLWAPI_214
();
}
if
(
SHLWAPI_hshlwapi
)
FreeLibrary
(
SHLWAPI_hshlwapi
);
...
...
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