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
6624cabb
Commit
6624cabb
authored
Nov 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Silence buffer overflow compiler warnings.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3a38fef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+4
-4
No files found.
dlls/shell32/cpanelfolder.c
View file @
6624cabb
...
@@ -259,9 +259,9 @@ static LPITEMIDLIST _ILCreateCPanelApplet(LPCSTR name, LPCSTR displayName,
...
@@ -259,9 +259,9 @@ static LPITEMIDLIST _ILCreateCPanelApplet(LPCSTR name, LPCSTR displayName,
memcpy
(
pidl
->
mkid
.
abID
,
&
tmp
,
2
+
size0
);
memcpy
(
pidl
->
mkid
.
abID
,
&
tmp
,
2
+
size0
);
p
=
&
((
PIDLDATA
*
)
pidl
->
mkid
.
abID
)
->
u
.
cpanel
;
p
=
&
((
PIDLDATA
*
)
pidl
->
mkid
.
abID
)
->
u
.
cpanel
;
strcpy
(
p
->
szName
,
name
);
memcpy
(
p
->
szName
,
name
,
strlen
(
name
)
+
1
);
strcpy
(
p
->
szName
+
tmp
.
u
.
cpanel
.
offsDispName
,
displayName
);
memcpy
(
p
->
szName
+
tmp
.
u
.
cpanel
.
offsDispName
,
displayName
,
strlen
(
displayName
)
+
1
);
strcpy
(
p
->
szName
+
tmp
.
u
.
cpanel
.
offsComment
,
comment
);
memcpy
(
p
->
szName
+
tmp
.
u
.
cpanel
.
offsComment
,
comment
,
strlen
(
comment
)
+
1
);
*
(
WORD
*
)((
char
*
)
pidl
+
(
size
+
2
))
=
0
;
*
(
WORD
*
)((
char
*
)
pidl
+
(
size
+
2
))
=
0
;
...
@@ -1077,7 +1077,7 @@ static HRESULT WINAPI IShellExecuteHookA_fnExecute(IShellExecuteHookA *iface,
...
@@ -1077,7 +1077,7 @@ static HRESULT WINAPI IShellExecuteHookA_fnExecute(IShellExecuteHookA *iface,
return
E_INVALIDARG
;
return
E_INVALIDARG
;
path
[
0
]
=
'\"'
;
path
[
0
]
=
'\"'
;
lstrcpyA
(
path
+
1
,
pcpanel
->
szName
);
memcpy
(
path
+
1
,
pcpanel
->
szName
,
strlen
(
pcpanel
->
szName
)
+
1
);
/* pass applet name to Control_RunDLL to distinguish between applets in one .cpl file */
/* pass applet name to Control_RunDLL to distinguish between applets in one .cpl file */
lstrcatA
(
path
,
"
\"
"
);
lstrcatA
(
path
,
"
\"
"
);
...
...
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