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
3a656fde
Commit
3a656fde
authored
Sep 09, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix a crash on Win9x.
parent
3a7c2d00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
shelllink.c
dlls/shell32/tests/shelllink.c
+11
-2
No files found.
dlls/shell32/tests/shelllink.c
View file @
3a656fde
...
...
@@ -107,6 +107,7 @@ static void test_get_set(void)
{
HRESULT
r
;
IShellLinkA
*
sl
;
IShellLinkW
*
slW
=
NULL
;
char
mypath
[
MAX_PATH
];
char
buffer
[
INFOTIPSIZE
];
LPITEMIDLIST
pidl
,
tmp_pidl
;
...
...
@@ -156,8 +157,16 @@ static void test_get_set(void)
ok
(
SUCCEEDED
(
r
),
"GetPath failed (0x%08x)
\n
"
,
r
);
ok
(
*
buffer
==
'\0'
,
"GetPath returned '%s'
\n
"
,
buffer
);
r
=
IShellLinkA_SetPath
(
sl
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"SetPath failed (0x%08x)
\n
"
,
r
);
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellLinkW
,
(
LPVOID
*
)
&
slW
);
if
(
!
slW
)
skip
(
"SetPath with NULL parameter crashes on Win9x
\n
"
);
else
{
IShellLinkW_Release
(
slW
);
r
=
IShellLinkA_SetPath
(
sl
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"SetPath failed (0x%08x)
\n
"
,
r
);
}
r
=
IShellLinkA_SetPath
(
sl
,
""
);
ok
(
r
==
S_OK
,
"SetPath failed (0x%08x)
\n
"
,
r
);
...
...
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