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
f370ab7e
Commit
f370ab7e
authored
Mar 04, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Prevent crash on W2K and below.
parent
6dfe16fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
shlfolder.c
dlls/shell32/tests/shlfolder.c
+17
-11
No files found.
dlls/shell32/tests/shlfolder.c
View file @
f370ab7e
...
...
@@ -104,17 +104,23 @@ static void test_ParseDisplayName(void)
hr
=
SHGetDesktopFolder
(
&
IDesktopFolder
);
if
(
hr
!=
S_OK
)
return
;
/* null name and pidl */
hr
=
IShellFolder_ParseDisplayName
(
IDesktopFolder
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"returned %08x, expected E_INVALIDARG
\n
"
,
hr
);
/* null name */
newPIDL
=
(
ITEMIDLIST
*
)
0xdeadbeef
;
hr
=
IShellFolder_ParseDisplayName
(
IDesktopFolder
,
NULL
,
NULL
,
NULL
,
NULL
,
&
newPIDL
,
0
);
ok
(
newPIDL
==
0
,
"expected null, got %p
\n
"
,
newPIDL
);
ok
(
hr
==
E_INVALIDARG
,
"returned %08x, expected E_INVALIDARG
\n
"
,
hr
);
/* Tests crash on W2K and below (SHCreateShellItem available as of XP) */
if
(
pSHCreateShellItem
)
{
/* null name and pidl */
hr
=
IShellFolder_ParseDisplayName
(
IDesktopFolder
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"returned %08x, expected E_INVALIDARG
\n
"
,
hr
);
/* null name */
newPIDL
=
(
ITEMIDLIST
*
)
0xdeadbeef
;
hr
=
IShellFolder_ParseDisplayName
(
IDesktopFolder
,
NULL
,
NULL
,
NULL
,
NULL
,
&
newPIDL
,
0
);
ok
(
newPIDL
==
0
,
"expected null, got %p
\n
"
,
newPIDL
);
ok
(
hr
==
E_INVALIDARG
,
"returned %08x, expected E_INVALIDARG
\n
"
,
hr
);
}
else
win_skip
(
"Tests would crash on W2K and below
\n
"
);
MultiByteToWideChar
(
CP_ACP
,
0
,
cInetTestA
,
-
1
,
cTestDirW
,
MAX_PATH
);
hr
=
IShellFolder_ParseDisplayName
(
IDesktopFolder
,
...
...
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