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
6e1829fc
Commit
6e1829fc
authored
Mar 19, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Assign to structs instead of using memcpy.
parent
389799e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
driver.c
dlls/user32/driver.c
+1
-1
sysparams.c
dlls/user32/sysparams.c
+5
-5
No files found.
dlls/user32/driver.c
View file @
6e1829fc
...
...
@@ -65,7 +65,7 @@ static const USER_DRIVER *load_driver(void)
driver_load_error
=
GetLastError
();
driver
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
driver
)
);
memcpy
(
driver
,
&
null_driver
,
sizeof
(
*
driver
)
)
;
*
driver
=
null_driver
;
if
(
graphics_driver
)
{
...
...
dlls/user32/sysparams.c
View file @
6e1829fc
...
...
@@ -1127,7 +1127,7 @@ static void load_nonclient_metrics(void)
if
(
hkey
)
RegCloseKey
(
hkey
);
normalize_nonclientmetrics
(
&
ncm
);
memcpy
(
&
nonclient_metrics
,
&
ncm
,
sizeof
(
nonclient_metrics
)
)
;
nonclient_metrics
=
ncm
;
spi_loaded
[
SPI_NONCLIENTMETRICS_IDX
]
=
TRUE
;
}
...
...
@@ -1546,7 +1546,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
if
(
!
spi_loaded
[
SPI_NONCLIENTMETRICS_IDX
])
load_nonclient_metrics
();
if
(
lpnm
&&
lpnm
->
cbSize
==
sizeof
(
NONCLIENTMETRICSW
))
memcpy
(
lpnm
,
&
nonclient_metrics
,
sizeof
(
*
lpnm
)
)
;
*
lpnm
=
nonclient_metrics
;
else
ret
=
FALSE
;
break
;
...
...
@@ -1602,9 +1602,9 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
METRICS_REGKEY
,
METRICS_MESSAGELOGFONT_VALNAME
,
&
lpnm
->
lfMessageFont
,
fWinIni
);
if
(
ret
)
{
memcpy
(
&
ncm
,
lpnm
,
sizeof
(
nonclient_metrics
)
)
;
ncm
=
*
lpnm
;
normalize_nonclientmetrics
(
&
ncm
);
memcpy
(
&
nonclient_metrics
,
&
ncm
,
sizeof
(
nonclient_metrics
)
)
;
nonclient_metrics
=
ncm
;
spi_loaded
[
SPI_NONCLIENTMETRICS_IDX
]
=
TRUE
;
}
}
...
...
@@ -1616,7 +1616,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
MINIMIZEDMETRICS
*
lpMm
=
pvParam
;
if
(
lpMm
&&
lpMm
->
cbSize
==
sizeof
(
*
lpMm
))
{
if
(
spi_loaded
[
SPI_MINIMIZEDMETRICS_IDX
])
load_minimized_metrics
();
memcpy
(
lpMm
,
&
minimized_metrics
,
sizeof
(
*
lpMm
)
)
;
*
lpMm
=
minimized_metrics
;
}
else
ret
=
FALSE
;
break
;
...
...
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