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
058926db
Commit
058926db
authored
Oct 07, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Fix implementation of IVideoWindow::get_Caption().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1f2c17d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
window.c
dlls/strmbase/window.c
+14
-5
No files found.
dlls/strmbase/window.c
View file @
058926db
...
...
@@ -297,15 +297,24 @@ HRESULT WINAPI BaseControlWindowImpl_put_Caption(IVideoWindow *iface, BSTR strCa
return
S_OK
;
}
HRESULT
WINAPI
BaseControlWindowImpl_get_Caption
(
IVideoWindow
*
iface
,
BSTR
*
strC
aption
)
HRESULT
WINAPI
BaseControlWindowImpl_get_Caption
(
IVideoWindow
*
iface
,
BSTR
*
c
aption
)
{
BaseControlWindow
*
This
=
impl_from_IVideoWindow
(
iface
);
BaseControlWindow
*
window
=
impl_from_IVideoWindow
(
iface
);
WCHAR
*
str
;
int
len
;
TRACE
(
"
(%p/%p)->(%p)
\n
"
,
This
,
iface
,
strC
aption
);
TRACE
(
"
window %p, caption %p.
\n
"
,
window
,
c
aption
);
GetWindowTextW
(
This
->
baseWindow
.
hWnd
,
(
LPWSTR
)
strCaption
,
100
)
;
*
caption
=
NULL
;
return
S_OK
;
len
=
GetWindowTextLengthW
(
window
->
baseWindow
.
hWnd
)
+
1
;
if
(
!
(
str
=
heap_alloc
(
len
*
sizeof
(
WCHAR
))))
return
E_OUTOFMEMORY
;
GetWindowTextW
(
window
->
baseWindow
.
hWnd
,
str
,
len
);
*
caption
=
SysAllocString
(
str
);
heap_free
(
str
);
return
*
caption
?
S_OK
:
E_OUTOFMEMORY
;
}
HRESULT
WINAPI
BaseControlWindowImpl_put_WindowStyle
(
IVideoWindow
*
iface
,
LONG
WindowStyle
)
...
...
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