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
197f867f
Commit
197f867f
authored
Oct 10, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix the logic deciding when to write to the destination structure.
parent
28d8819b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
sysparams.c
dlls/user32/sysparams.c
+14
-8
No files found.
dlls/user32/sysparams.c
View file @
197f867f
...
...
@@ -463,10 +463,13 @@ static void SYSPARAMS_NonClientMetrics32WTo32A( const NONCLIENTMETRICSW* lpnm32W
SYSPARAMS_LogFont32WTo32A
(
&
lpnm32W
->
lfMenuFont
,
&
lpnm32A
->
lfMenuFont
);
SYSPARAMS_LogFont32WTo32A
(
&
lpnm32W
->
lfStatusFont
,
&
lpnm32A
->
lfStatusFont
);
SYSPARAMS_LogFont32WTo32A
(
&
lpnm32W
->
lfMessageFont
,
&
lpnm32A
->
lfMessageFont
);
if
(
lpnm32A
->
cbSize
==
sizeof
(
NONCLIENTMETRICSA
)
&&
lpnm32W
->
cbSize
==
sizeof
(
NONCLIENTMETRICSW
))
lpnm32A
->
iPaddedBorderWidth
=
lpnm32W
->
iPaddedBorderWidth
;
else
lpnm32A
->
iPaddedBorderWidth
=
0
;
if
(
lpnm32A
->
cbSize
>
FIELD_OFFSET
(
NONCLIENTMETRICSA
,
iPaddedBorderWidth
))
{
if
(
lpnm32W
->
cbSize
>
FIELD_OFFSET
(
NONCLIENTMETRICSW
,
iPaddedBorderWidth
))
lpnm32A
->
iPaddedBorderWidth
=
lpnm32W
->
iPaddedBorderWidth
;
else
lpnm32A
->
iPaddedBorderWidth
=
0
;
}
}
static
void
SYSPARAMS_NonClientMetrics32ATo32W
(
const
NONCLIENTMETRICSA
*
lpnm32A
,
LPNONCLIENTMETRICSW
lpnm32W
)
...
...
@@ -485,10 +488,13 @@ static void SYSPARAMS_NonClientMetrics32ATo32W( const NONCLIENTMETRICSA* lpnm32A
SYSPARAMS_LogFont32ATo32W
(
&
lpnm32A
->
lfMenuFont
,
&
lpnm32W
->
lfMenuFont
);
SYSPARAMS_LogFont32ATo32W
(
&
lpnm32A
->
lfStatusFont
,
&
lpnm32W
->
lfStatusFont
);
SYSPARAMS_LogFont32ATo32W
(
&
lpnm32A
->
lfMessageFont
,
&
lpnm32W
->
lfMessageFont
);
if
(
lpnm32A
->
cbSize
==
sizeof
(
NONCLIENTMETRICSA
)
&&
lpnm32W
->
cbSize
==
sizeof
(
NONCLIENTMETRICSW
))
lpnm32W
->
iPaddedBorderWidth
=
lpnm32A
->
iPaddedBorderWidth
;
else
lpnm32W
->
iPaddedBorderWidth
=
0
;
if
(
lpnm32W
->
cbSize
>
FIELD_OFFSET
(
NONCLIENTMETRICSW
,
iPaddedBorderWidth
))
{
if
(
lpnm32A
->
cbSize
>
FIELD_OFFSET
(
NONCLIENTMETRICSA
,
iPaddedBorderWidth
))
lpnm32W
->
iPaddedBorderWidth
=
lpnm32A
->
iPaddedBorderWidth
;
else
lpnm32W
->
iPaddedBorderWidth
=
0
;
}
}
...
...
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