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
b8a973dc
Commit
b8a973dc
authored
Sep 13, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Some tests for ProgID section.
parent
15b6ff20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
14 deletions
+116
-14
actctx.c
dlls/kernel32/tests/actctx.c
+108
-9
actctx.c
dlls/ntdll/actctx.c
+8
-5
No files found.
dlls/kernel32/tests/actctx.c
View file @
b8a973dc
This diff is collapsed.
Click to expand it.
dlls/ntdll/actctx.c
View file @
b8a973dc
...
...
@@ -138,7 +138,9 @@ struct strsection_header
DWORD
unk1
[
3
];
ULONG
count
;
ULONG
index_offset
;
DWORD
unk2
[
4
];
DWORD
unk2
[
2
];
ULONG
global_offset
;
ULONG
global_len
;
};
struct
string_index
...
...
@@ -3495,7 +3497,7 @@ static void get_comserver_datalen(const struct entity_array *entities, const str
/* all string data is stored together in aligned block */
str_len
=
strlenW
(
entity
->
u
.
comclass
.
name
)
+
1
;
if
(
*
entity
->
u
.
comclass
.
progid
)
if
(
entity
->
u
.
comclass
.
progid
)
str_len
+=
strlenW
(
entity
->
u
.
comclass
.
progid
)
+
1
;
if
(
entity
->
u
.
comclass
.
version
)
str_len
+=
strlenW
(
entity
->
u
.
comclass
.
version
)
+
1
;
...
...
@@ -3509,7 +3511,7 @@ static void get_comserver_datalen(const struct entity_array *entities, const str
else
{
/* progid string is stored separately */
if
(
*
entity
->
u
.
comclass
.
progid
)
if
(
entity
->
u
.
comclass
.
progid
)
*
len
+=
aligned_string_len
((
strlenW
(
entity
->
u
.
comclass
.
progid
)
+
1
)
*
sizeof
(
WCHAR
));
*
module_len
+=
(
strlenW
(
dll
->
name
)
+
1
)
*
sizeof
(
WCHAR
);
...
...
@@ -3538,7 +3540,7 @@ static void add_comserver_record(const struct guidsection_header *section, const
UNICODE_STRING
str
;
WCHAR
*
ptrW
;
if
(
*
entity
->
u
.
comclass
.
progid
)
if
(
entity
->
u
.
comclass
.
progid
)
progid_len
=
strlenW
(
entity
->
u
.
comclass
.
progid
)
*
sizeof
(
WCHAR
);
else
progid_len
=
0
;
...
...
@@ -3779,7 +3781,8 @@ static NTSTATUS find_comserver_redirection(ACTIVATION_CONTEXT* actctx, const GUI
data
->
ulDataFormatVersion
=
1
;
data
->
lpData
=
comclass
;
/* full length includes string length with nulls */
data
->
ulLength
=
comclass
->
size
+
comclass
->
progid_len
+
sizeof
(
WCHAR
)
+
comclass
->
clrdata_len
;
data
->
ulLength
=
comclass
->
size
+
comclass
->
clrdata_len
;
if
(
comclass
->
progid_len
)
data
->
ulLength
+=
comclass
->
progid_len
+
sizeof
(
WCHAR
);
data
->
lpSectionGlobalData
=
(
BYTE
*
)
actctx
->
comserver_section
+
actctx
->
comserver_section
->
names_offset
;
data
->
ulSectionGlobalDataLength
=
actctx
->
comserver_section
->
names_len
;
data
->
lpSectionBase
=
actctx
->
comserver_section
;
...
...
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