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
c0cd954f
Commit
c0cd954f
authored
Jun 27, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Jun 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add missing parameter check in ISF_Desktop_fnQueryInterface.
parent
d5c9a8a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+2
-0
shfldr_special.c
dlls/shell32/tests/shfldr_special.c
+15
-0
No files found.
dlls/shell32/shfldr_desktop.c
View file @
c0cd954f
...
...
@@ -106,6 +106,8 @@ static HRESULT WINAPI ISF_Desktop_fnQueryInterface(
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
shdebugstr_guid
(
riid
),
ppvObj
);
if
(
!
ppvObj
)
return
E_POINTER
;
*
ppvObj
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
...
...
dlls/shell32/tests/shfldr_special.c
View file @
c0cd954f
...
...
@@ -224,9 +224,24 @@ if (0)
CoUninitialize
();
}
static
void
test_desktop_folder
(
void
)
{
IShellFolder
*
psf
;
HRESULT
hr
;
hr
=
SHGetDesktopFolder
(
&
psf
);
ok
(
hr
==
S_OK
,
"Got %x
\n
"
,
hr
);
hr
=
IShellFolder_QueryInterface
(
psf
,
&
IID_IShellFolder
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Got %x
\n
"
,
hr
);
IShellFolder_Release
(
psf
);
}
START_TEST
(
shfldr_special
)
{
test_parse_for_entire_network
();
test_parse_for_control_panel
();
test_printers_folder
();
test_desktop_folder
();
}
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