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
28b68dad
Commit
28b68dad
authored
Feb 10, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Feb 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Test creating shell links for commands on path.
parent
67cd59b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
shelllink.c
dlls/shell32/tests/shelllink.c
+17
-0
No files found.
dlls/shell32/tests/shelllink.c
View file @
28b68dad
...
@@ -487,6 +487,7 @@ static void test_load_save(void)
...
@@ -487,6 +487,7 @@ static void test_load_save(void)
lnk_desc_t
desc
;
lnk_desc_t
desc
;
char
mypath
[
MAX_PATH
];
char
mypath
[
MAX_PATH
];
char
mydir
[
MAX_PATH
];
char
mydir
[
MAX_PATH
];
char
realpath
[
MAX_PATH
];
char
*
p
;
char
*
p
;
DWORD
r
;
DWORD
r
;
...
@@ -535,6 +536,22 @@ static void test_load_save(void)
...
@@ -535,6 +536,22 @@ static void test_load_save(void)
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
,
0
);
check_lnk
(
lnkfile
,
&
desc
);
check_lnk
(
lnkfile
,
&
desc
);
/* Overwrite the existing lnk file and test link to a command on the path */
desc
.
description
=
"command on path"
;
desc
.
workdir
=
mypath
;
desc
.
path
=
"rundll32.exe"
;
desc
.
pidl
=
NULL
;
desc
.
arguments
=
"/option1 /option2
\"
Some string
\"
"
;
desc
.
showcmd
=
SW_SHOWNORMAL
;
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
/* Check that link is created to proper location */
SearchPathA
(
NULL
,
desc
.
path
,
NULL
,
MAX_PATH
,
realpath
,
NULL
);
desc
.
path
=
realpath
;
check_lnk
(
lnkfile
,
&
desc
);
/* FIXME: Also test saving a .lnk pointing to a pidl that cannot be
/* FIXME: Also test saving a .lnk pointing to a pidl that cannot be
* represented as a path.
* represented as a path.
*/
*/
...
...
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