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
8279e753
Commit
8279e753
authored
Jun 26, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove superflous NULL check (Coverity).
parent
5b80d1be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
brsfolder.c
dlls/shell32/tests/brsfolder.c
+17
-6
No files found.
dlls/shell32/tests/brsfolder.c
View file @
8279e753
...
...
@@ -149,7 +149,7 @@ static int CALLBACK create_new_folder_callback(HWND hwnd, UINT uMsg,
*/
static
void
test_click_make_new_folder_button
(
void
)
{
HRESULT
resCoInit
;
HRESULT
resCoInit
,
hr
;
BROWSEINFO
bi
;
LPITEMIDLIST
pidl
=
NULL
;
LPITEMIDLIST
test_folder_pidl
;
...
...
@@ -202,7 +202,12 @@ static void test_click_make_new_folder_button(void)
/* Use test folder as the root folder for dialog box */
MultiByteToWideChar
(
CP_UTF8
,
0
,
test_folder_path
,
MAX_PATH
,
test_folder_pathW
,
MAX_PATH
);
SHGetDesktopFolder
(
&
test_folder_object
);
hr
=
SHGetDesktopFolder
(
&
test_folder_object
);
ok
(
SUCCEEDED
(
hr
),
"SHGetDesktopFolder failed with hr 0x%08x
\n
"
,
hr
);
if
(
!
SUCCEEDED
(
hr
))
{
skip
(
"SHGetDesktopFolder failed - skipping
\n
"
);
return
;
}
test_folder_object
->
lpVtbl
->
ParseDisplayName
(
test_folder_object
,
NULL
,
NULL
,
test_folder_pathW
,
0UL
,
&
test_folder_pidl
,
0UL
);
bi
.
pidlRoot
=
test_folder_pidl
;
...
...
@@ -243,8 +248,7 @@ static void test_click_make_new_folder_button(void)
CoTaskMemFree
(
pidl
);
if
(
test_folder_pidl
)
CoTaskMemFree
(
test_folder_pidl
);
if
(
test_folder_object
)
test_folder_object
->
lpVtbl
->
Release
(
test_folder_object
);
test_folder_object
->
lpVtbl
->
Release
(
test_folder_object
);
CoUninitialize
();
}
...
...
@@ -300,7 +304,7 @@ static int CALLBACK selection_callback(HWND hwnd, UINT uMsg, LPARAM lParam, LPAR
static
void
test_selection
(
void
)
{
HRESULT
resCoInit
;
HRESULT
resCoInit
,
hr
;
BROWSEINFO
bi
;
LPITEMIDLIST
pidl
=
NULL
;
IShellFolder
*
desktop_object
;
...
...
@@ -325,7 +329,12 @@ static void test_selection(void)
bi
.
lpszTitle
=
(
LPTSTR
)
title
;
bi
.
lpfn
=
selection_callback
;
SHGetDesktopFolder
(
&
desktop_object
);
hr
=
SHGetDesktopFolder
(
&
desktop_object
);
ok
(
SUCCEEDED
(
hr
),
"SHGetDesktopFolder failed with hr 0x%08x
\n
"
,
hr
);
if
(
!
SUCCEEDED
(
hr
))
{
skip
(
"SHGetDesktopFolder failed - skipping
\n
"
);
return
;
}
desktop_object
->
lpVtbl
->
ParseDisplayName
(
desktop_object
,
NULL
,
NULL
,
selected_folderW
,
0UL
,
&
selected_folder_pidl
,
0UL
);
bi
.
pidlRoot
=
selected_folder_pidl
;
...
...
@@ -344,6 +353,8 @@ static void test_selection(void)
if
(
pidl
)
CoTaskMemFree
(
pidl
);
desktop_object
->
lpVtbl
->
Release
(
desktop_object
);
CoUninitialize
();
}
...
...
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