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
c48c3abd
Commit
c48c3abd
authored
Jun 27, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jun 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional test cases for IShellFolder_BindToObject.
parent
26138619
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
shlfolder.c
dlls/shell32/tests/shlfolder.c
+10
-0
No files found.
dlls/shell32/tests/shlfolder.c
View file @
c48c3abd
...
...
@@ -187,6 +187,9 @@ static void test_BindToObject(void)
hr
=
IShellFolder_BindToObject
(
psfDesktop
,
pidlEmpty
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfChild
);
ok
(
hr
==
E_INVALIDARG
,
"Desktop's BindToObject should fail, when called with empty pidl! hr = %08lx
\n
"
,
hr
);
hr
=
IShellFolder_BindToObject
(
psfDesktop
,
NULL
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfChild
);
ok
(
hr
==
E_INVALIDARG
,
"Desktop's BindToObject should fail, when called with NULL pidl! hr = %08lx
\n
"
,
hr
);
hr
=
IShellFolder_ParseDisplayName
(
psfDesktop
,
NULL
,
NULL
,
wszMyComputer
,
NULL
,
&
pidlMyComputer
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Desktop's ParseDisplayName failed to parse MyComputer's CLSID! hr = %08lx
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
...
...
@@ -203,6 +206,9 @@ static void test_BindToObject(void)
hr
=
IShellFolder_BindToObject
(
psfMyComputer
,
pidlEmpty
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfChild
);
ok
(
hr
==
E_INVALIDARG
,
"MyComputers's BindToObject should fail, when called with empty pidl! hr = %08lx
\n
"
,
hr
);
hr
=
IShellFolder_BindToObject
(
psfMyComputer
,
NULL
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfChild
);
ok
(
hr
==
E_INVALIDARG
,
"MyComputers's BindToObject should fail, when called with NULL pidl! hr = %08lx
\n
"
,
hr
);
cChars
=
GetSystemDirectoryW
(
wszSystemDir
,
MAX_PATH
);
ok
(
cChars
>
0
&&
cChars
<
MAX_PATH
,
"GetSystemDirectoryW failed! LastError: %08lx
\n
"
,
GetLastError
());
if
(
cChars
==
0
||
cChars
>=
MAX_PATH
)
{
...
...
@@ -227,6 +233,10 @@ static void test_BindToObject(void)
ok
(
hr
==
E_INVALIDARG
,
"FileSystem ShellFolder's BindToObject should fail, when called with empty pidl! hr = %08lx
\n
"
,
hr
);
hr
=
IShellFolder_BindToObject
(
psfSystemDir
,
NULL
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfChild
);
ok
(
hr
==
E_INVALIDARG
,
"FileSystem ShellFolder's BindToObject should fail, when called with NULL pidl! hr = %08lx
\n
"
,
hr
);
IShellFolder_Release
(
psfSystemDir
);
}
...
...
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