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
0a190487
Commit
0a190487
authored
Jun 16, 2015
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement ITextStream Close.
parent
bd7e83f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
filesystem.c
dlls/scrrun/filesystem.c
+10
-2
filesystem.c
dlls/scrrun/tests/filesystem.c
+12
-0
No files found.
dlls/scrrun/filesystem.c
View file @
0a190487
...
...
@@ -633,8 +633,16 @@ static HRESULT WINAPI textstream_SkipLine(ITextStream *iface)
static
HRESULT
WINAPI
textstream_Close
(
ITextStream
*
iface
)
{
struct
textstream
*
This
=
impl_from_ITextStream
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
E_NOTIMPL
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
CloseHandle
(
This
->
file
))
hr
=
S_FALSE
;
This
->
file
=
NULL
;
return
hr
;
}
static
const
ITextStreamVtbl
textstreamvtbl
=
{
...
...
dlls/scrrun/tests/filesystem.c
View file @
0a190487
...
...
@@ -35,6 +35,9 @@
static
IFileSystem3
*
fs3
;
/* w2k and 2k3 error code. */
#define E_VAR_NOT_SET 0x800a005b
static
inline
ULONG
get_refcount
(
IUnknown
*
iface
)
{
IUnknown_AddRef
(
iface
);
...
...
@@ -1378,6 +1381,15 @@ static void test_CreateTextFile(void)
hr
=
ITextStream_Read
(
stream
,
1
,
&
str
);
ok
(
hr
==
CTL_E_BADFILEMODE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
ITextStream_Close
(
stream
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
ITextStream_Read
(
stream
,
1
,
&
str
);
ok
(
hr
==
CTL_E_BADFILEMODE
||
hr
==
E_VAR_NOT_SET
,
"got 0x%08x
\n
"
,
hr
);
hr
=
ITextStream_Close
(
stream
);
ok
(
hr
==
S_FALSE
||
hr
==
E_VAR_NOT_SET
,
"got 0x%08x
\n
"
,
hr
);
ITextStream_Release
(
stream
);
/* check it's created */
...
...
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