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
0a34f254
Commit
0a34f254
authored
Jan 06, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: A couple of tests for ReadClassStm/ReadClassStg.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
66974e55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
storage32.c
dlls/ole32/tests/storage32.c
+14
-2
No files found.
dlls/ole32/tests/storage32.c
View file @
0a34f254
...
@@ -1176,7 +1176,7 @@ static void test_writeclassstg(void)
...
@@ -1176,7 +1176,7 @@ static void test_writeclassstg(void)
{
{
IStorage
*
stg
=
NULL
;
IStorage
*
stg
=
NULL
;
HRESULT
r
;
HRESULT
r
;
CLSID
temp_cls
;
CLSID
temp_cls
,
cls2
;
DeleteFileA
(
filenameA
);
DeleteFileA
(
filenameA
);
...
@@ -1188,6 +1188,12 @@ static void test_writeclassstg(void)
...
@@ -1188,6 +1188,12 @@ static void test_writeclassstg(void)
r
=
ReadClassStg
(
NULL
,
NULL
);
r
=
ReadClassStg
(
NULL
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"ReadClassStg should return E_INVALIDARG instead of 0x%08X
\n
"
,
r
);
ok
(
r
==
E_INVALIDARG
,
"ReadClassStg should return E_INVALIDARG instead of 0x%08X
\n
"
,
r
);
memset
(
&
temp_cls
,
0xcc
,
sizeof
(
temp_cls
));
memset
(
&
cls2
,
0xcc
,
sizeof
(
cls2
));
r
=
ReadClassStg
(
NULL
,
&
temp_cls
);
ok
(
r
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
r
);
ok
(
IsEqualCLSID
(
&
temp_cls
,
&
cls2
),
"got wrong clsid
\n
"
);
r
=
ReadClassStg
(
stg
,
NULL
);
r
=
ReadClassStg
(
stg
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"ReadClassStg should return E_INVALIDARG instead of 0x%08X
\n
"
,
r
);
ok
(
r
==
E_INVALIDARG
,
"ReadClassStg should return E_INVALIDARG instead of 0x%08X
\n
"
,
r
);
...
@@ -1957,7 +1963,7 @@ static void test_nonroot_transacted(void)
...
@@ -1957,7 +1963,7 @@ static void test_nonroot_transacted(void)
static
void
test_ReadClassStm
(
void
)
static
void
test_ReadClassStm
(
void
)
{
{
CLSID
clsid
;
CLSID
clsid
,
clsid2
;
HRESULT
hr
;
HRESULT
hr
;
IStream
*
pStream
;
IStream
*
pStream
;
static
const
LARGE_INTEGER
llZero
;
static
const
LARGE_INTEGER
llZero
;
...
@@ -1973,6 +1979,12 @@ static void test_ReadClassStm(void)
...
@@ -1973,6 +1979,12 @@ static void test_ReadClassStm(void)
hr
=
ReadClassStm
(
pStream
,
NULL
);
hr
=
ReadClassStm
(
pStream
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ReadClassStm should have returned E_INVALIDARG instead of 0x%08x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"ReadClassStm should have returned E_INVALIDARG instead of 0x%08x
\n
"
,
hr
);
memset
(
&
clsid
,
0xcc
,
sizeof
(
clsid
));
memset
(
&
clsid2
,
0xcc
,
sizeof
(
clsid2
));
hr
=
ReadClassStm
(
NULL
,
&
clsid
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
hr
);
ok
(
IsEqualCLSID
(
&
clsid
,
&
clsid2
),
"got wrong clsid
\n
"
);
/* test not rewound stream */
/* test not rewound stream */
hr
=
ReadClassStm
(
pStream
,
&
clsid
);
hr
=
ReadClassStm
(
pStream
,
&
clsid
);
ok
(
hr
==
STG_E_READFAULT
,
"ReadClassStm should have returned STG_E_READFAULT instead of 0x%08x
\n
"
,
hr
);
ok
(
hr
==
STG_E_READFAULT
,
"ReadClassStm should have returned STG_E_READFAULT instead of 0x%08x
\n
"
,
hr
);
...
...
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