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
e9d4ca06
Commit
e9d4ca06
authored
Jun 15, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Removed superflous NULL check (Coverity).
parent
d27478b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
string.c
dlls/shlwapi/string.c
+4
-14
No files found.
dlls/shlwapi/string.c
View file @
e9d4ca06
...
...
@@ -2473,17 +2473,12 @@ char WINAPI SHStripMneumonicA(LPCSTR lpszStr)
if
((
lpszIter
=
StrChrA
(
lpszStr
,
'&'
)))
{
lpszTmp
=
CharNextA
(
lpszIter
);
if
(
lpszTmp
&&
*
lpszTmp
)
if
(
*
lpszTmp
)
{
if
(
*
lpszTmp
!=
'&'
)
ch
=
*
lpszTmp
;
while
(
lpszIter
&&
*
lpszIter
)
{
lpszTmp
=
CharNextA
(
lpszIter
);
*
lpszIter
=
*
lpszTmp
;
lpszIter
=
lpszTmp
;
}
memmove
(
lpszIter
,
lpszTmp
,
strlen
(
lpszTmp
)
+
1
);
}
}
...
...
@@ -2507,17 +2502,12 @@ WCHAR WINAPI SHStripMneumonicW(LPCWSTR lpszStr)
if
((
lpszIter
=
StrChrW
(
lpszStr
,
'&'
)))
{
lpszTmp
=
lpszIter
+
1
;
if
(
lpszTmp
&&
*
lpszTmp
)
if
(
*
lpszTmp
)
{
if
(
*
lpszTmp
!=
'&'
)
ch
=
*
lpszTmp
;
while
(
lpszIter
&&
*
lpszIter
)
{
lpszTmp
=
lpszIter
+
1
;
*
lpszIter
=
*
lpszTmp
;
lpszIter
=
lpszTmp
;
}
memmove
(
lpszIter
,
lpszTmp
,
(
strlenW
(
lpszTmp
)
+
1
)
*
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