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
bf4b5188
Commit
bf4b5188
authored
Mar 08, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: CreateBindCtx should fail if reserved parameter is not zero.
parent
612dc9d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
bindctx.c
dlls/ole32/bindctx.c
+8
-0
moniker.c
dlls/ole32/tests/moniker.c
+0
-1
No files found.
dlls/ole32/bindctx.c
View file @
bf4b5188
...
...
@@ -536,6 +536,14 @@ HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC * ppbc)
TRACE
(
"(%d,%p)
\n
"
,
reserved
,
ppbc
);
*
ppbc
=
NULL
;
if
(
reserved
!=
0
)
{
ERR
(
"reserved should be 0, not 0x%x
\n
"
,
reserved
);
return
E_INVALIDARG
;
}
newBindCtx
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BindCtxImpl
));
if
(
newBindCtx
==
0
)
return
E_OUTOFMEMORY
;
...
...
dlls/ole32/tests/moniker.c
View file @
bf4b5188
...
...
@@ -1448,7 +1448,6 @@ static void test_bind_context(void)
static
const
WCHAR
wszParamName
[]
=
{
'G'
,
'e'
,
'm'
,
'm'
,
'a'
,
0
};
hr
=
CreateBindCtx
(
0xdeadbeef
,
&
pBindCtx
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"CreateBindCtx with reserved value non-zero should have returned E_INVALIDARG instead of 0x%08x
\n
"
,
hr
);
hr
=
CreateBindCtx
(
0
,
&
pBindCtx
);
...
...
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