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
9c6de52b
Commit
9c6de52b
authored
Jan 11, 2005
by
Bill Medland
Committed by
Alexandre Julliard
Jan 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected testing for multithreaded (based upon observations by Paul
Vriens, Christian Costa and Robert Shearman). Added TRACE for investigating OXID errors.
parent
8dd96b17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
compobj.c
dlls/ole32/compobj.c
+8
-3
No files found.
dlls/ole32/compobj.c
View file @
9c6de52b
...
...
@@ -22,6 +22,10 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Note
* 1. COINIT_MULTITHREADED is 0; it is the lack of COINIT_APARTMENTTHREADED
* Therefore do not test against COINIT_MULTITHREADED
*
* TODO list: (items bunched together depend on each other)
*
* - Switch wine_marshal_id to use IPIDs not IIDs
...
...
@@ -252,11 +256,11 @@ APARTMENT* COM_CreateApartment(DWORD model)
if
(
!
apt
)
{
if
(
model
&
COINIT_MULTITHREADED
)
if
(
!
(
model
&
COINIT_APARTMENTTHREADED
))
/* See note 1 above */
{
TRACE
(
"thread 0x%lx is entering the multithreaded apartment
\n
"
,
GetCurrentThreadId
());
COM_CurrentInfo
()
->
apt
=
&
MTA
;
return
apt
;
return
COM_CurrentInfo
()
->
apt
;
}
TRACE
(
"creating new apartment, model=%ld
\n
"
,
model
);
...
...
@@ -281,6 +285,7 @@ APARTMENT* COM_CreateApartment(DWORD model)
{
/* FIXME: how does windoze create OXIDs? */
apt
->
oxid
=
MTA
.
oxid
|
GetCurrentThreadId
();
TRACE
(
"Created apartment on OXID %s
\n
"
,
wine_dbgstr_longlong
(
apt
->
oxid
));
apt
->
win
=
CreateWindowA
(
aptWinClass
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
OLE32_hInstance
,
NULL
);
...
...
@@ -316,7 +321,7 @@ DWORD COM_ApartmentRelease(struct apartment *apt)
MARSHAL_Disconnect_Proxies
(
apt
);
if
(
(
apt
->
model
&
COINIT_APARTMENTTHREADED
)
&&
apt
->
win
)
DestroyWindow
(
apt
->
win
);
if
(
apt
->
win
)
DestroyWindow
(
apt
->
win
);
if
(
!
list_empty
(
&
apt
->
stubmgrs
))
{
...
...
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