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
fcba783f
Commit
fcba783f
authored
Jan 10, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole: Add an accessor function for an apartment's window.
parent
d175f154
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
compobj.c
dlls/ole32/compobj.c
+6
-0
compobj_private.h
dlls/ole32/compobj_private.h
+1
-0
rpc.c
dlls/ole32/rpc.c
+2
-2
No files found.
dlls/ole32/compobj.c
View file @
fcba783f
...
...
@@ -422,6 +422,12 @@ static LRESULT CALLBACK apartment_wndproc(HWND hWnd, UINT msg, WPARAM wParam, LP
}
}
HWND
apartment_getwindow
(
struct
apartment
*
apt
)
{
assert
(
apt
->
model
&
COINIT_APARTMENTTHREADED
);
return
apt
->
win
;
}
void
apartment_joinmta
(
void
)
{
apartment_addref
(
MTA
);
...
...
dlls/ole32/compobj_private.h
View file @
fcba783f
...
...
@@ -230,6 +230,7 @@ static inline HRESULT apartment_getoxid(struct apartment *apt, OXID *oxid)
*
oxid
=
apt
->
oxid
;
return
S_OK
;
}
HWND
apartment_getwindow
(
struct
apartment
*
apt
);
void
apartment_joinmta
(
void
);
...
...
dlls/ole32/rpc.c
View file @
fcba783f
...
...
@@ -254,7 +254,7 @@ static HRESULT WINAPI RpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER iface, RPC
TRACE
(
"Calling apartment thread 0x%08lx...
\n
"
,
apt
->
tid
);
if
(
!
PostMessageW
(
ap
t
->
win
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
))
if
(
!
PostMessageW
(
ap
artment_getwindow
(
apt
)
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
))
{
ERR
(
"PostMessage failed with error %ld
\n
"
,
GetLastError
());
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
...
...
@@ -509,7 +509,7 @@ static void __RPC_STUB dispatch_rpc(RPC_MESSAGE *msg)
TRACE
(
"Calling apartment thread 0x%08lx...
\n
"
,
apt
->
tid
);
if
(
PostMessageW
(
ap
t
->
win
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
))
if
(
PostMessageW
(
ap
artment_getwindow
(
apt
)
,
DM_EXECUTERPC
,
0
,
(
LPARAM
)
params
))
WaitForSingleObject
(
params
->
handle
,
INFINITE
);
else
{
...
...
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