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
cd16e222
Commit
cd16e222
authored
Apr 18, 2008
by
Reece Dunn
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Fix the return codes for Windows 2000 (without IE6 installed).
parent
951084ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
istream.c
dlls/shlwapi/tests/istream.c
+14
-7
No files found.
dlls/shlwapi/tests/istream.c
View file @
cd16e222
...
...
@@ -76,35 +76,40 @@ static void test_IStream_invalid_operations(IStream * stream, DWORD mode)
ret
=
stream
->
lpVtbl
->
Write
(
stream
,
NULL
,
0
,
&
count
);
if
(
mode
==
STGM_READ
)
ok
(
ret
==
STG_E_ACCESSDENIED
,
"expected STG_E_ACCESSDENIED, got 0x%08x
\n
"
,
ret
);
ok
(
ret
==
STG_E_ACCESSDENIED
/* XP */
||
ret
==
S_OK
/* 2000 */
,
"expected STG_E_ACCESSDENIED or S_OK, got 0x%08x
\n
"
,
ret
);
else
ok
(
ret
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
ret
);
strcpy
(
data
,
"Hello"
);
ret
=
stream
->
lpVtbl
->
Write
(
stream
,
data
,
5
,
NULL
);
if
(
mode
==
STGM_READ
)
ok
(
ret
==
STG_E_ACCESSDENIED
,
"expected STG_E_ACCESSDENIED, got 0x%08x
\n
"
,
ret
);
ok
(
ret
==
STG_E_ACCESSDENIED
/* XP */
||
ret
==
S_OK
/* 2000 */
,
"expected STG_E_ACCESSDENIED or S_OK, got 0x%08x
\n
"
,
ret
);
else
ok
(
ret
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
ret
);
strcpy
(
data
,
"Hello"
);
ret
=
stream
->
lpVtbl
->
Write
(
stream
,
data
,
0
,
NULL
);
if
(
mode
==
STGM_READ
)
ok
(
ret
==
STG_E_ACCESSDENIED
,
"expected STG_E_ACCESSDENIED, got 0x%08x
\n
"
,
ret
);
ok
(
ret
==
STG_E_ACCESSDENIED
/* XP */
||
ret
==
S_OK
/* 2000 */
,
"expected STG_E_ACCESSDENIED or S_OK, got 0x%08x
\n
"
,
ret
);
else
ok
(
ret
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
ret
);
strcpy
(
data
,
"Hello"
);
ret
=
stream
->
lpVtbl
->
Write
(
stream
,
data
,
0
,
&
count
);
if
(
mode
==
STGM_READ
)
ok
(
ret
==
STG_E_ACCESSDENIED
,
"expected STG_E_ACCESSDENIED, got 0x%08x
\n
"
,
ret
);
ok
(
ret
==
STG_E_ACCESSDENIED
/* XP */
||
ret
==
S_OK
/* 2000 */
,
"expected STG_E_ACCESSDENIED or S_OK, got 0x%08x
\n
"
,
ret
);
else
ok
(
ret
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
ret
);
strcpy
(
data
,
"Hello"
);
ret
=
stream
->
lpVtbl
->
Write
(
stream
,
data
,
3
,
&
count
);
if
(
mode
==
STGM_READ
)
ok
(
ret
==
STG_E_ACCESSDENIED
,
"expected STG_E_ACCESSDENIED, got 0x%08x
\n
"
,
ret
);
ok
(
ret
==
STG_E_ACCESSDENIED
/* XP */
||
ret
==
S_OK
/* 2000 */
,
"expected STG_E_ACCESSDENIED or S_OK, got 0x%08x
\n
"
,
ret
);
else
ok
(
ret
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
ret
);
...
...
@@ -114,7 +119,8 @@ static void test_IStream_invalid_operations(IStream * stream, DWORD mode)
ok
(
ret
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
ret
);
ret
=
IStream_Seek
(
stream
,
zero
,
20
,
NULL
);
ok
(
ret
==
E_INVALIDARG
,
"expected E_INVALIDARG, got 0x%08x
\n
"
,
ret
);
ok
(
ret
==
E_INVALIDARG
/* XP */
||
ret
==
S_OK
/* 2000 */
,
"expected E_INVALIDARG or S_OK, got 0x%08x
\n
"
,
ret
);
/* IStream::CopyTo */
...
...
@@ -166,7 +172,8 @@ static void test_IStream_invalid_operations(IStream * stream, DWORD mode)
/* IStream::Stat */
ret
=
IStream_Stat
(
stream
,
NULL
,
0
);
ok
(
ret
==
STG_E_INVALIDPOINTER
,
"expected STG_E_INVALIDPOINTER, got 0x%08x
\n
"
,
ret
);
ok
(
ret
==
STG_E_INVALIDPOINTER
/* XP */
||
ret
==
E_NOTIMPL
/* 2000 */
,
"expected STG_E_INVALIDPOINTER or E_NOTIMPL, got 0x%08x
\n
"
,
ret
);
/* IStream::Clone */
...
...
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