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
b562a512
Commit
b562a512
authored
Sep 24, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Remove redundant NULL check before SysFreeString (Smatch).
parent
f830a12d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
string.c
dlls/shlwapi/tests/string.c
+3
-6
No files found.
dlls/shlwapi/tests/string.c
View file @
b562a512
...
...
@@ -664,16 +664,14 @@ static void test_StrRetToBSTR(void)
ret
=
pStrRetToBSTR
(
&
strret
,
NULL
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
"STRRET_WSTR: dup failed, ret=0x%08x, bstr %p
\n
"
,
ret
,
bstr
);
if
(
bstr
)
SysFreeString
(
bstr
);
SysFreeString
(
bstr
);
strret
.
uType
=
STRRET_CSTR
;
lstrcpyA
(
U
(
strret
).
cStr
,
"Test"
);
ret
=
pStrRetToBSTR
(
&
strret
,
NULL
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
"STRRET_CSTR: dup failed, ret=0x%08x, bstr %p
\n
"
,
ret
,
bstr
);
if
(
bstr
)
SysFreeString
(
bstr
);
SysFreeString
(
bstr
);
strret
.
uType
=
STRRET_OFFSET
;
U
(
strret
).
uOffset
=
1
;
...
...
@@ -681,8 +679,7 @@ static void test_StrRetToBSTR(void)
ret
=
pStrRetToBSTR
(
&
strret
,
iidl
,
&
bstr
);
ok
(
ret
==
S_OK
&&
bstr
&&
!
strcmpW
(
bstr
,
szTestW
),
"STRRET_OFFSET: dup failed, ret=0x%08x, bstr %p
\n
"
,
ret
,
bstr
);
if
(
bstr
)
SysFreeString
(
bstr
);
SysFreeString
(
bstr
);
/* Native crashes if str is NULL */
}
...
...
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