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
dd3c58c4
Commit
dd3c58c4
authored
Jan 30, 2017
by
André Hentschel
Committed by
Alexandre Julliard
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Fix bytecount for memmoves (Coverity).
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b566b5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
details.c
programs/oleview/details.c
+5
-6
No files found.
programs/oleview/details.c
View file @
dd3c58c4
...
...
@@ -139,7 +139,7 @@ static void CreateRegRec(HKEY hKey, HTREEITEM parent, WCHAR *wszKeyName, BOOL ad
}
else
if
(
addings
&&
!
memcmp
(
wszName
,
wszProxyStubClsid32
,
sizeof
(
WCHAR
[
17
])))
{
lenData
=
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]
);
lenData
=
sizeof
(
wszData
);
RegQueryValueW
(
hCurKey
,
NULL
,
wszData
,
(
LONG
*
)
&
lenData
);
RegCloseKey
(
hCurKey
);
...
...
@@ -155,7 +155,7 @@ static void CreateRegRec(HKEY hKey, HTREEITEM parent, WCHAR *wszKeyName, BOOL ad
RegCloseKey
(
hCurKey
);
memmove
(
&
wszData
[
6
],
wszData
,
lenData
*
sizeof
(
WCHAR
)
);
memmove
(
&
wszData
[
6
],
wszData
,
lenData
);
memcpy
(
wszData
,
wszCLSID
,
sizeof
(
WCHAR
[
6
]));
wszData
[
5
]
=
'\\'
;
...
...
@@ -183,7 +183,7 @@ static void CreateRegRec(HKEY hKey, HTREEITEM parent, WCHAR *wszKeyName, BOOL ad
RegCloseKey
(
hCurKey
);
memmove
(
&
wszData
[
8
],
wszData
,
lenData
*
sizeof
(
WCHAR
)
);
memmove
(
&
wszData
[
8
],
wszData
,
lenData
);
memcpy
(
wszData
,
wszTypeLib
,
sizeof
(
WCHAR
[
8
]));
wszData
[
7
]
=
'\\'
;
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
wszData
,
&
hCurKey
);
...
...
@@ -229,12 +229,11 @@ static void CreateReg(WCHAR *buffer)
*
path
=
'\\'
;
path
+=
1
;
lenTree
=
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]
);
lenTree
=
sizeof
(
wszTree
);
if
(
RegQueryValueW
(
hKey
,
NULL
,
wszTree
,
(
LONG
*
)
&
lenTree
)
==
ERROR_SUCCESS
)
{
memmove
(
&
wszTree
[
lenBuffer
-
lastLenBuffer
+
3
],
wszTree
,
lenTree
*
sizeof
(
WCHAR
));
memmove
(
&
wszTree
[
lenBuffer
-
lastLenBuffer
+
3
],
wszTree
,
lenTree
);
memcpy
(
wszTree
,
&
buffer
[
lastLenBuffer
],
(
lenBuffer
-
lastLenBuffer
)
*
sizeof
(
WCHAR
));
...
...
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