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
8e211065
Commit
8e211065
authored
Sep 02, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Store 'clrClass' as COM class.
parent
d0deaaa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
actctx.c
dlls/ntdll/actctx.c
+23
-12
No files found.
dlls/ntdll/actctx.c
View file @
8e211065
...
...
@@ -386,6 +386,8 @@ struct entity
WCHAR
*
clsid
;
WCHAR
*
tlbid
;
WCHAR
*
progid
;
WCHAR
*
name
;
/* not NULL for clrClass */
WCHAR
*
version
;
DWORD
model
;
DWORD
miscstatus
;
DWORD
miscstatuscontent
;
...
...
@@ -411,11 +413,6 @@ struct entity
{
WCHAR
*
name
;
WCHAR
*
clsid
;
}
clrclass
;
struct
{
WCHAR
*
name
;
WCHAR
*
clsid
;
WCHAR
*
version
;
}
clrsurrogate
;
}
u
;
...
...
@@ -790,6 +787,8 @@ static void free_entity_array(struct entity_array *array)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
comclass
.
clsid
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
comclass
.
tlbid
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
comclass
.
progid
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
comclass
.
name
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
comclass
.
version
);
break
;
case
ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION
:
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
ifaceps
.
iid
);
...
...
@@ -804,10 +803,6 @@ static void free_entity_array(struct entity_array *array)
case
ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION
:
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
class
.
name
);
break
;
case
ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION
:
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
clrclass
.
name
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
clrclass
.
clsid
);
break
;
case
ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES
:
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
clrsurrogate
.
name
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
entity
->
u
.
clrsurrogate
.
clsid
);
...
...
@@ -1806,18 +1801,34 @@ static BOOL parse_clr_class_elem(xmlbuf_t* xmlbuf, struct assembly* assembly)
BOOL
end
=
FALSE
,
error
;
struct
entity
*
entity
;
entity
=
add_entity
(
&
assembly
->
entities
,
ACTIVATION_CONTEXT_SECTION_COM_
PROGID
_REDIRECTION
);
entity
=
add_entity
(
&
assembly
->
entities
,
ACTIVATION_CONTEXT_SECTION_COM_
SERVER
_REDIRECTION
);
if
(
!
entity
)
return
FALSE
;
while
(
next_xml_attr
(
xmlbuf
,
&
attr_name
,
&
attr_value
,
&
error
,
&
end
))
{
if
(
xmlstr_cmp
(
&
attr_name
,
nameW
))
{
if
(
!
(
entity
->
u
.
c
lr
class
.
name
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
if
(
!
(
entity
->
u
.
c
om
class
.
name
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
clsidW
))
{
if
(
!
(
entity
->
u
.
clrclass
.
clsid
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
if
(
!
(
entity
->
u
.
comclass
.
clsid
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
progidW
))
{
if
(
!
(
entity
->
u
.
comclass
.
progid
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
tlbidW
))
{
if
(
!
(
entity
->
u
.
comclass
.
tlbid
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
threadingmodelW
))
{
entity
->
u
.
comclass
.
model
=
parse_com_class_threadingmodel
(
&
attr_value
);
}
else
if
(
xmlstr_cmp
(
&
attr_name
,
runtimeVersionW
))
{
if
(
!
(
entity
->
u
.
comclass
.
version
=
xmlstrdupW
(
&
attr_value
)))
return
FALSE
;
}
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