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
c0a86cc1
Commit
c0a86cc1
authored
Dec 14, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix shelllink test to not crash on NT4.
With much help from Francois.
parent
9ef5a863
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
shelllink.c
dlls/shell32/tests/shelllink.c
+10
-5
No files found.
dlls/shell32/tests/shelllink.c
View file @
c0a86cc1
...
...
@@ -168,15 +168,15 @@ static void test_get_set(void)
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellLinkW
,
(
LPVOID
*
)
&
slW
);
if
(
!
slW
)
skip
(
"SetPath with NULL parameter crashes on Win9x
\n
"
);
if
(
!
slW
/* Win9x */
||
!
pGetLongPathNameA
/* NT4 */
)
skip
(
"SetPath with NULL parameter crashes on Win9x
and some NT4
\n
"
);
else
{
IShellLinkW_Release
(
slW
);
r
=
IShellLinkA_SetPath
(
sl
,
NULL
);
ok
(
r
==
E_INVALIDARG
||
broken
(
r
==
S_OK
),
/* Some Win95 and NT4 */
"SetPath
failed
(0x%08x)
\n
"
,
r
);
"SetPath
returned wrong error
(0x%08x)
\n
"
,
r
);
}
r
=
IShellLinkA_SetPath
(
sl
,
""
);
...
...
@@ -808,11 +808,16 @@ static void test_datalink(void)
ok
(
r
==
E_FAIL
,
"CopyDataBlock failed
\n
"
);
ok
(
dar
==
NULL
,
"should be null
\n
"
);
if
(
!
pGetLongPathNameA
/* NT4 */
)
skip
(
"SetPath with NULL parameter crashes on NT4
\n
"
);
else
{
r
=
IShellLinkW_SetPath
(
sl
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"set path failed
\n
"
);
ok
(
r
==
E_INVALIDARG
,
"SetPath returned wrong error (0x%08x)
\n
"
,
r
);
}
r
=
IShellLinkW_SetPath
(
sl
,
lnk
);
ok
(
r
==
S_OK
,
"
set p
ath failed
\n
"
);
ok
(
r
==
S_OK
,
"
SetP
ath failed
\n
"
);
if
(
0
)
{
...
...
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