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
afe0ba17
Commit
afe0ba17
authored
Jul 08, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Remove redundant NULL checks before CoTaskMemFree().
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5a7853b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
brsfolder.c
dlls/shell32/tests/brsfolder.c
+4
-10
No files found.
dlls/shell32/tests/brsfolder.c
View file @
afe0ba17
...
...
@@ -248,10 +248,8 @@ static void test_click_make_new_folder_button(void)
shfileop
.
fFlags
=
FOF_NOCONFIRMATION
|
FOF_NOERRORUI
|
FOF_SILENT
;
SHFileOperationA
(
&
shfileop
);
if
(
pidl
)
CoTaskMemFree
(
pidl
);
if
(
test_folder_pidl
)
CoTaskMemFree
(
test_folder_pidl
);
CoTaskMemFree
(
pidl
);
CoTaskMemFree
(
test_folder_pidl
);
test_folder_object
->
lpVtbl
->
Release
(
test_folder_object
);
CoUninitialize
();
...
...
@@ -346,16 +344,12 @@ static void test_selection(void)
/* test without flags */
bi
.
ulFlags
=
0
;
pidl
=
SHBrowseForFolderA
(
&
bi
);
if
(
pidl
)
CoTaskMemFree
(
pidl
);
CoTaskMemFree
(
pidl
);
/* test with flag */
bi
.
ulFlags
=
BIF_NEWDIALOGSTYLE
;
pidl
=
SHBrowseForFolderA
(
&
bi
);
if
(
pidl
)
CoTaskMemFree
(
pidl
);
CoTaskMemFree
(
pidl
);
IShellFolder_Release
(
desktop_object
);
...
...
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