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
ba3ceaa4
Commit
ba3ceaa4
authored
Mar 09, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix cbStruct handling in IBindCtx:GetBindOptions.
parent
e14e464d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
bindctx.c
dlls/ole32/bindctx.c
+7
-3
moniker.c
dlls/ole32/tests/moniker.c
+0
-1
No files found.
dlls/ole32/bindctx.c
View file @
ba3ceaa4
...
...
@@ -267,16 +267,20 @@ static HRESULT WINAPI
BindCtxImpl_GetBindOptions
(
IBindCtx
*
iface
,
BIND_OPTS
*
pbindopts
)
{
BindCtxImpl
*
This
=
(
BindCtxImpl
*
)
iface
;
ULONG
cbStruct
;
TRACE
(
"(%p,%p)
\n
"
,
This
,
pbindopts
);
if
(
pbindopts
==
NULL
)
return
E_POINTER
;
if
(
pbindopts
->
cbStruct
>
sizeof
(
BIND_OPTS2
))
pbindopts
->
cbStruct
=
sizeof
(
BIND_OPTS2
);
cbStruct
=
pbindopts
->
cbStruct
;
if
(
cbStruct
>
sizeof
(
BIND_OPTS2
))
cbStruct
=
sizeof
(
BIND_OPTS2
);
memcpy
(
pbindopts
,
&
This
->
bindOption2
,
cbStruct
);
pbindopts
->
cbStruct
=
cbStruct
;
memcpy
(
pbindopts
,
&
This
->
bindOption2
,
pbindopts
->
cbStruct
);
return
S_OK
;
}
...
...
dlls/ole32/tests/moniker.c
View file @
ba3ceaa4
...
...
@@ -1466,7 +1466,6 @@ static void test_bind_context(void)
bind_opts
.
cbStruct
=
sizeof
(
BIND_OPTS
);
hr
=
IBindCtx_GetBindOptions
(
pBindCtx
,
(
BIND_OPTS
*
)
&
bind_opts
);
ok_ole_success
(
hr
,
"IBindCtx_GetBindOptions"
);
todo_wine
ok
(
bind_opts
.
cbStruct
==
sizeof
(
BIND_OPTS
),
"bind_opts.cbStruct was %d
\n
"
,
bind_opts
.
cbStruct
);
bind_opts
.
cbStruct
=
sizeof
(
bind_opts
);
...
...
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