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
8d555e82
Commit
8d555e82
authored
Feb 12, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Assign to structs instead of using memcpy.
parent
ec086f77
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
comboex.c
dlls/comctl32/comboex.c
+1
-1
rebar.c
dlls/comctl32/rebar.c
+2
-2
toolbar.c
dlls/comctl32/toolbar.c
+4
-4
No files found.
dlls/comctl32/comboex.c
View file @
8d555e82
...
...
@@ -243,7 +243,7 @@ static INT COMBOEX_NotifyEndEdit (COMBOEX_INFO *infoPtr, NMCBEENDEDITW *neew, LP
}
else
{
NMCBEENDEDITA
neea
;
memcpy
(
&
neea
.
hdr
,
&
neew
->
hdr
,
sizeof
(
NMHDR
))
;
neea
.
hdr
=
neew
->
hdr
;
neea
.
fChanged
=
neew
->
fChanged
;
neea
.
iNewSelection
=
neew
->
iNewSelection
;
WideCharToMultiByte
(
CP_ACP
,
0
,
wstr
,
-
1
,
neea
.
szText
,
CBEMAXSTRLEN
,
0
,
0
);
...
...
dlls/comctl32/rebar.c
View file @
8d555e82
...
...
@@ -2423,7 +2423,7 @@ REBAR_MoveBand (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
/* save one to be moved */
memcpy
(
&
holder
,
&
oldBands
[
uFrom
],
sizeof
(
REBAR_BAND
))
;
holder
=
oldBands
[
uFrom
]
;
/* close up rest of bands (pseudo delete) */
if
(
uFrom
<
infoPtr
->
uNumBands
-
1
)
{
...
...
@@ -2442,7 +2442,7 @@ REBAR_MoveBand (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
/* set moved band */
memcpy
(
&
infoPtr
->
bands
[
uTo
],
&
holder
,
sizeof
(
REBAR_BAND
))
;
infoPtr
->
bands
[
uTo
]
=
holder
;
/* post copy */
if
(
uTo
<
infoPtr
->
uNumBands
-
1
)
{
...
...
dlls/comctl32/toolbar.c
View file @
8d555e82
...
...
@@ -2087,7 +2087,7 @@ static void TOOLBAR_Cust_AddButton(const CUSTDLG_INFO *custInfo, HWND hwnd, INT
/* duplicate 'separator' button */
btnNew
=
(
PCUSTOMBUTTON
)
Alloc
(
sizeof
(
CUSTOMBUTTON
));
memcpy
(
btnNew
,
btnInfo
,
sizeof
(
CUSTOMBUTTON
))
;
*
btnNew
=
*
btnInfo
;
btnInfo
=
btnNew
;
}
...
...
@@ -2370,7 +2370,7 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
IDC_TOOLBARBTN_LBOX
,
LB_GETITEMDATA
,
index
,
0
);
}
memcpy
(
&
btnInfo
->
btn
,
&
nmtb
.
tbButton
,
sizeof
(
TBBUTTON
))
;
btnInfo
->
btn
=
nmtb
.
tbButton
;
if
(
!
(
nmtb
.
tbButton
.
fsStyle
&
BTNS_SEP
))
{
if
(
lstrlenW
(
nmtb
.
pszText
))
...
...
@@ -6455,7 +6455,7 @@ TOOLBAR_Paint (HWND hwnd, WPARAM wParam)
PAINTSTRUCT
ps
;
/* fill ps.rcPaint with a default rect */
memcpy
(
&
(
ps
.
rcPaint
),
&
(
infoPtr
->
rcBound
),
sizeof
(
infoPtr
->
rcBound
))
;
ps
.
rcPaint
=
infoPtr
->
rcBound
;
hdc
=
wParam
==
0
?
BeginPaint
(
hwnd
,
&
ps
)
:
(
HDC
)
wParam
;
...
...
@@ -7179,7 +7179,7 @@ static BOOL TOOLBAR_GetButtonInfo(const TOOLBAR_INFO *infoPtr, NMTOOLBARW *nmtb)
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
nmtba
.
pszText
,
-
1
,
nmtb
->
pszText
,
nmtb
->
cchText
);
memcpy
(
&
nmtb
->
tbButton
,
&
nmtba
.
tbButton
,
sizeof
(
TBBUTTON
))
;
nmtb
->
tbButton
=
nmtba
.
tbButton
;
bRet
=
TRUE
;
}
...
...
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