Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2061c61c
Commit
2061c61c
authored
Jun 04, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Jun 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Test more IStream Functions on a ConfigStream.
parent
79a51533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
mscoree.c
dlls/mscoree/tests/mscoree.c
+26
-4
No files found.
dlls/mscoree/tests/mscoree.c
View file @
2061c61c
...
...
@@ -274,7 +274,6 @@ static void test_createconfigstream(void)
WCHAR
nonexistent
[]
=
{
'n'
,
'o'
,
'n'
,
'e'
,
'x'
,
'i'
,
's'
,
't'
,
'.'
,
'x'
,
'm'
,
'l'
,
0
};
WCHAR
path
[
MAX_PATH
];
HRESULT
hr
;
ULONG
ret
;
char
buffer
[
256
]
=
{
0
};
if
(
!
pCreateConfigStream
)
...
...
@@ -308,14 +307,37 @@ static void test_createconfigstream(void)
if
(
stream
)
{
DWORD
count
;
LARGE_INTEGER
pos
;
ULARGE_INTEGER
size
;
IStream
*
stream2
=
NULL
;
hr
=
IStream_Read
(
stream
,
&
buffer
,
strlen
(
xmldata
),
&
count
);
hr
=
IStream_Read
(
stream
,
buffer
,
strlen
(
xmldata
),
&
count
);
ok
(
hr
==
S_OK
,
"IStream_Read failed, hr=%x
\n
"
,
hr
);
ok
(
count
==
strlen
(
xmldata
),
"wrong count: %u
\n
"
,
count
);
ok
(
!
strcmp
(
buffer
,
xmldata
),
"Strings do not match
\n
"
);
ret
=
IStream_Release
(
stream
);
ok
(
!
ret
,
"ret=%d
\n
"
,
ret
);
hr
=
IStream_Write
(
stream
,
xmldata
,
strlen
(
xmldata
),
&
count
);
ok
(
hr
==
E_FAIL
,
"IStream_Write returned hr=%x
\n
"
,
hr
);
pos
.
QuadPart
=
strlen
(
xmldata
);
hr
=
IStream_Seek
(
stream
,
pos
,
STREAM_SEEK_SET
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"IStream_Seek returned hr=%x
\n
"
,
hr
);
size
.
QuadPart
=
strlen
(
xmldata
);
hr
=
IStream_SetSize
(
stream
,
size
);
ok
(
hr
==
E_NOTIMPL
,
"IStream_SetSize returned hr=%x
\n
"
,
hr
);
hr
=
IStream_Clone
(
stream
,
&
stream2
);
ok
(
hr
==
E_NOTIMPL
,
"IStream_Clone returned hr=%x
\n
"
,
hr
);
hr
=
IStream_Commit
(
stream
,
STGC_DEFAULT
);
ok
(
hr
==
E_NOTIMPL
,
"IStream_Commit returned hr=%x
\n
"
,
hr
);
hr
=
IStream_Revert
(
stream
);
ok
(
hr
==
E_NOTIMPL
,
"IStream_Revert returned hr=%x
\n
"
,
hr
);
hr
=
IStream_Release
(
stream
);
ok
(
hr
==
S_OK
,
"IStream_Release returned hr=%x
\n
"
,
hr
);
}
DeleteFileW
(
file
);
}
...
...
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