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
0ed4c6df
Commit
0ed4c6df
authored
Mar 01, 2010
by
Reece Dunn
Committed by
Alexandre Julliard
Mar 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: IMoniker_IsRunning returns E_INVALIDARG when bindctx is NULL.
parent
a2ae7a2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
compositemoniker.c
dlls/ole32/compositemoniker.c
+1
-1
itemmoniker.c
dlls/ole32/itemmoniker.c
+1
-1
moniker.c
dlls/ole32/tests/moniker.c
+0
-3
No files found.
dlls/ole32/compositemoniker.c
View file @
0ed4c6df
...
...
@@ -670,7 +670,7 @@ CompositeMonikerImpl_IsRunning(IMoniker* iface, IBindCtx* pbc,
else
{
if
(
pbc
==
NULL
)
return
E_
POINTER
;
return
E_
INVALIDARG
;
/* If pmkToLeft and pmkNewlyRunning are both NULL, this method checks the ROT to see whether */
/* the moniker is running. If so, the method returns S_OK; otherwise, it recursively calls */
...
...
dlls/ole32/itemmoniker.c
View file @
0ed4c6df
...
...
@@ -561,7 +561,7 @@ static HRESULT WINAPI ItemMonikerImpl_IsRunning(IMoniker* iface,
return
S_OK
;
else
{
if
(
pbc
==
NULL
)
return
E_
POINTER
;
return
E_
INVALIDARG
;
res
=
IBindCtx_GetRunningObjectTable
(
pbc
,
&
rot
);
...
...
dlls/ole32/tests/moniker.c
View file @
0ed4c6df
...
...
@@ -1495,7 +1495,6 @@ static void test_item_moniker(void)
/* IsRunning test */
hr
=
IMoniker_IsRunning
(
moniker
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"IMoniker_IsRunning should return E_INVALIDARG, not 0x%08x
\n
"
,
hr
);
hr
=
IMoniker_IsRunning
(
moniker
,
bindctx
,
NULL
,
NULL
);
...
...
@@ -1631,7 +1630,6 @@ static void test_generic_composite_moniker(void)
/* IsRunning test */
hr
=
IMoniker_IsRunning
(
moniker
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"IMoniker_IsRunning should return E_INVALIDARG, not 0x%08x
\n
"
,
hr
);
hr
=
IMoniker_IsRunning
(
moniker
,
bindctx
,
NULL
,
NULL
);
...
...
@@ -1645,7 +1643,6 @@ static void test_generic_composite_moniker(void)
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"IMoniker_BindToObject should return E_INVALIDARG, not 0x%08x
\n
"
,
hr
);
todo_wine
hr
=
IMoniker_BindToStorage
(
moniker
,
bindctx
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
unknown
);
ok
(
hr
==
E_INVALIDARG
,
"IMoniker_BindToStorage should return E_INVALIDARG, not 0x%08x
\n
"
,
hr
);
...
...
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