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
e265d534
Commit
e265d534
authored
Nov 11, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Return success from OleLockRunning when the object does not support IRunnableObject.
parent
b82f615c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
ole2.c
dlls/ole32/ole2.c
+2
-2
ole2.c
dlls/ole32/tests/ole2.c
+40
-0
No files found.
dlls/ole32/ole2.c
View file @
e265d534
...
...
@@ -1140,8 +1140,8 @@ HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCl
return
hres
;
}
else
return
E_INVALIDARG
;
return
S_OK
;
}
...
...
dlls/ole32/tests/ole2.c
View file @
e265d534
...
...
@@ -1556,6 +1556,45 @@ static void test_runnable(void)
g_showRunnable
=
TRUE
;
}
static
HRESULT
WINAPI
Unknown_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
iface
;
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
Unknown_AddRef
(
IUnknown
*
iface
)
{
return
2
;
}
static
ULONG
WINAPI
Unknown_Release
(
IUnknown
*
iface
)
{
return
1
;
}
static
const
IUnknownVtbl
UnknownVtbl
=
{
Unknown_QueryInterface
,
Unknown_AddRef
,
Unknown_Release
};
static
IUnknown
Unknown
=
{
&
UnknownVtbl
};
static
void
test_OleLockRunning
(
void
)
{
HRESULT
hr
;
hr
=
OleLockRunning
((
LPUNKNOWN
)
&
Unknown
,
TRUE
,
FALSE
);
ok
(
hr
==
S_OK
,
"OleLockRunning failed 0x%08x
\n
"
,
hr
);
}
START_TEST
(
ole2
)
{
DWORD
dwRegister
;
...
...
@@ -1587,6 +1626,7 @@ START_TEST(ole2)
test_data_cache
();
test_default_handler
();
test_runnable
();
test_OleLockRunning
();
CoUninitialize
();
}
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