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
44d8f6a3
Commit
44d8f6a3
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: For typelib and COM class sections point global data to module names.
parent
675b0525
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
actctx.c
dlls/kernel32/tests/actctx.c
+9
-4
actctx.c
dlls/ntdll/actctx.c
+4
-4
No files found.
dlls/kernel32/tests/actctx.c
View file @
44d8f6a3
...
...
@@ -1148,6 +1148,7 @@ static void test_find_com_redirection(HANDLE handle, const GUID *clsid, const GU
{
struct
comclassredirect_data
*
comclass
,
*
comclass2
;
ACTCTX_SECTION_KEYED_DATA
data
,
data2
;
struct
guidsection_header
*
header
;
BOOL
ret
;
memset
(
&
data
,
0xfe
,
sizeof
(
data
));
...
...
@@ -1207,11 +1208,11 @@ static void test_find_com_redirection(HANDLE handle, const GUID *clsid, const GU
ok_
(
__FILE__
,
line
)(
comclass
->
miscstatusdocprint
!=
0
,
"got miscstatusdocprint 0x%08x
\n
"
,
comclass
->
miscstatusdocprint
);
}
}
todo_wine
{
ok_
(
__FILE__
,
line
)(
data
.
lpSectionGlobalData
!=
NULL
,
"data.lpSectionGlobalData == NULL
\n
"
);
ok_
(
__FILE__
,
line
)(
data
.
ulSectionGlobalDataLength
>
0
,
"data.ulSectionGlobalDataLength=%u
\n
"
,
header
=
(
struct
guidsection_header
*
)
data
.
lpSectionBase
;
ok_
(
__FILE__
,
line
)(
data
.
lpSectionGlobalData
==
((
BYTE
*
)
header
+
header
->
names_offset
),
"data.lpSectionGlobalData == NULL
\n
"
);
ok_
(
__FILE__
,
line
)(
data
.
ulSectionGlobalDataLength
==
header
->
names_len
,
"data.ulSectionGlobalDataLength=%u
\n
"
,
data
.
ulSectionGlobalDataLength
);
}
ok_
(
__FILE__
,
line
)(
data
.
lpSectionBase
!=
NULL
,
"data.lpSectionBase == NULL
\n
"
);
ok_
(
__FILE__
,
line
)(
data
.
ulSectionTotalLength
>
0
,
"data.ulSectionTotalLength=%u
\n
"
,
data
.
ulSectionTotalLength
);
...
...
@@ -1474,6 +1475,10 @@ static void test_typelib_section(void)
ok
(
data
.
ulSectionTotalLength
==
data2
.
ulSectionTotalLength
,
"got %u, %u
\n
"
,
data
.
ulSectionTotalLength
,
data2
.
ulSectionTotalLength
);
ok
(
data
.
lpSectionGlobalData
==
((
BYTE
*
)
section
+
section
->
names_offset
),
"data.lpSectionGlobalData == NULL
\n
"
);
ok
(
data
.
ulSectionGlobalDataLength
==
section
->
names_len
,
"data.ulSectionGlobalDataLength=%u
\n
"
,
data
.
ulSectionGlobalDataLength
);
/* test some actual data */
tlib
=
(
struct
tlibredirect_data
*
)
data
.
lpData
;
ok
(
tlib
->
size
==
sizeof
(
*
tlib
),
"got %d
\n
"
,
tlib
->
size
);
...
...
dlls/ntdll/actctx.c
View file @
44d8f6a3
...
...
@@ -3294,8 +3294,8 @@ static NTSTATUS find_tlib_redirection(ACTIVATION_CONTEXT* actctx, const GUID *gu
data
->
lpData
=
tlib
;
/* full length includes string length with nulls */
data
->
ulLength
=
tlib
->
size
+
tlib
->
help_len
+
sizeof
(
WCHAR
);
data
->
lpSectionGlobalData
=
NULL
;
data
->
ulSectionGlobalDataLength
=
0
;
data
->
lpSectionGlobalData
=
(
BYTE
*
)
actctx
->
tlib_section
+
actctx
->
tlib_section
->
names_offset
;
data
->
ulSectionGlobalDataLength
=
actctx
->
tlib_section
->
names_len
;
data
->
lpSectionBase
=
actctx
->
tlib_section
;
data
->
ulSectionTotalLength
=
RtlSizeHeap
(
GetProcessHeap
(),
0
,
actctx
->
tlib_section
);
data
->
hActCtx
=
NULL
;
...
...
@@ -3517,8 +3517,8 @@ static NTSTATUS find_comserver_redirection(ACTIVATION_CONTEXT* actctx, const GUI
data
->
lpData
=
comclass
;
/* full length includes string length with nulls */
data
->
ulLength
=
comclass
->
size
+
comclass
->
progid_len
+
sizeof
(
WCHAR
);
data
->
lpSectionGlobalData
=
NULL
;
data
->
ulSectionGlobalDataLength
=
0
;
data
->
lpSectionGlobalData
=
(
BYTE
*
)
actctx
->
comserver_section
+
actctx
->
comserver_section
->
names_offset
;
data
->
ulSectionGlobalDataLength
=
actctx
->
comserver_section
->
names_len
;
data
->
lpSectionBase
=
actctx
->
comserver_section
;
data
->
ulSectionTotalLength
=
RtlSizeHeap
(
GetProcessHeap
(),
0
,
actctx
->
comserver_section
);
data
->
hActCtx
=
NULL
;
...
...
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