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
ea50d41b
Commit
ea50d41b
authored
Apr 30, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Fix alignment of compatibility context elements.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=51080
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2deb8c28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
version.c
dlls/kernelbase/version.c
+9
-6
No files found.
dlls/kernelbase/version.c
View file @
ea50d41b
...
@@ -168,7 +168,11 @@ static RTL_OSVERSIONINFOEXW current_version;
...
@@ -168,7 +168,11 @@ static RTL_OSVERSIONINFOEXW current_version;
static
BOOL
CALLBACK
init_current_version
(
PINIT_ONCE
init_once
,
PVOID
parameter
,
PVOID
*
context
)
static
BOOL
CALLBACK
init_current_version
(
PINIT_ONCE
init_once
,
PVOID
parameter
,
PVOID
*
context
)
{
{
/*ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION*/
DWORD
*
acci
;
struct
acci
{
DWORD
ElementCount
;
COMPATIBILITY_CONTEXT_ELEMENT
Elements
[
1
];
}
*
acci
;
const
struct
version_info
*
ver
;
const
struct
version_info
*
ver
;
SIZE_T
req
;
SIZE_T
req
;
int
idx
;
int
idx
;
...
@@ -201,13 +205,12 @@ static BOOL CALLBACK init_current_version(PINIT_ONCE init_once, PVOID parameter,
...
@@ -201,13 +205,12 @@ static BOOL CALLBACK init_current_version(PINIT_ONCE init_once, PVOID parameter,
{
{
do
do
{
{
COMPATIBILITY_CONTEXT_ELEMENT
*
elements
=
(
COMPATIBILITY_CONTEXT_ELEMENT
*
)(
acci
+
1
);
DWORD
i
;
DWORD
i
,
count
=
*
acci
;
for
(
i
=
0
;
i
<
c
ount
;
i
++
)
for
(
i
=
0
;
i
<
acci
->
ElementC
ount
;
i
++
)
{
{
if
(
e
lements
[
i
].
Type
==
ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS
&&
if
(
acci
->
E
lements
[
i
].
Type
==
ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS
&&
IsEqualGUID
(
&
e
lements
[
i
].
Id
,
&
version_data
[
idx
].
guid
))
IsEqualGUID
(
&
acci
->
E
lements
[
i
].
Id
,
&
version_data
[
idx
].
guid
))
{
{
ver
=
&
version_data
[
idx
].
info
;
ver
=
&
version_data
[
idx
].
info
;
...
...
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