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
d468dd2e
Commit
d468dd2e
authored
Dec 23, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Remove no longer used parameter.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b8ddffa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
shell32_test.h
dlls/shell32/tests/shell32_test.h
+2
-2
shelllink.c
dlls/shell32/tests/shelllink.c
+11
-12
shlexec.c
dlls/shell32/tests/shlexec.c
+2
-2
No files found.
dlls/shell32/tests/shell32_test.h
View file @
d468dd2e
...
...
@@ -33,5 +33,5 @@ typedef struct
WORD
hotkey
;
}
lnk_desc_t
;
#define create_lnk(a,b
,c) create_lnk_(__LINE__, (a), (b), (c
))
void
create_lnk_
(
int
,
const
WCHAR
*
,
lnk_desc_t
*
,
int
);
#define create_lnk(a,b
) create_lnk_(__LINE__, (a), (b
))
void
create_lnk_
(
int
,
const
WCHAR
*
,
lnk_desc_t
*
);
dlls/shell32/tests/shelllink.c
View file @
d468dd2e
...
...
@@ -386,7 +386,7 @@ static void test_get_set(void)
#define lok ok_(__FILE__, line)
#define check_lnk(a,b,c) check_lnk_(__LINE__, (a), (b), (c))
void
create_lnk_
(
int
line
,
const
WCHAR
*
path
,
lnk_desc_t
*
desc
,
int
save_fails
)
void
create_lnk_
(
int
line
,
const
WCHAR
*
path
,
lnk_desc_t
*
desc
)
{
HRESULT
r
;
IShellLinkA
*
sl
;
...
...
@@ -460,8 +460,7 @@ void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int save_fails)
lok
(
str
==
NULL
,
"got %p
\n
"
,
str
);
r
=
IPersistFile_Save
(
pf
,
path
,
TRUE
);
todo_wine_if
(
save_fails
)
lok
(
r
==
S_OK
,
"save failed (0x%08x)
\n
"
,
r
);
lok
(
r
==
S_OK
,
"save failed (0x%08x)
\n
"
,
r
);
/* test GetCurFile after ::Save */
r
=
IPersistFile_GetCurFile
(
pf
,
&
str
);
...
...
@@ -628,7 +627,7 @@ static void test_load_save(void)
/* Save an empty .lnk file */
memset
(
&
desc
,
0
,
sizeof
(
desc
));
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
/* It should come back as a bunch of empty strings */
desc
.
description
=
""
;
...
...
@@ -648,7 +647,7 @@ static void test_load_save(void)
desc
.
icon
=
"c:
\\
nonexistent
\\
icon
\\
file"
;
desc
.
icon_id
=
1234
;
desc
.
hotkey
=
0
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
check_lnk
(
lnkfile
,
&
desc
,
0x0
);
r
=
GetModuleFileNameA
(
NULL
,
mypath
,
sizeof
(
mypath
));
...
...
@@ -672,7 +671,7 @@ static void test_load_save(void)
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
check_lnk
(
lnkfile
,
&
desc
,
0x0
);
/* Test omitting .exe from an absolute path */
...
...
@@ -689,7 +688,7 @@ static void test_load_save(void)
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
strcat
(
realpath
,
".exe"
);
check_lnk
(
lnkfile
,
&
desc
,
0x4
);
...
...
@@ -703,7 +702,7 @@ static void test_load_save(void)
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
/* Check that link is created to proper location */
SearchPathA
(
NULL
,
desc
.
path
,
NULL
,
MAX_PATH
,
realpath
,
NULL
);
desc
.
path
=
realpath
;
...
...
@@ -719,7 +718,7 @@ static void test_load_save(void)
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
/* Check that link is created to proper location */
SearchPathA
(
NULL
,
"rundll32"
,
NULL
,
MAX_PATH
,
realpath
,
NULL
);
desc
.
path
=
realpath
;
...
...
@@ -750,7 +749,7 @@ static void test_load_save(void)
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
check_lnk
(
lnkfile
,
&
desc
,
0x0
);
r
=
GetShortPathNameA
(
mydir
,
mypath
,
sizeof
(
mypath
));
...
...
@@ -770,7 +769,7 @@ static void test_load_save(void)
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
desc
.
path
=
realpath
;
check_lnk
(
lnkfile
,
&
desc
,
0x0
);
...
...
@@ -800,7 +799,7 @@ static void test_load_save(void)
desc
.
icon
=
mypath
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0x1234
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
desc
.
path
=
realpath
;
check_lnk
(
lnkfile
,
&
desc
,
0x4
);
...
...
dlls/shell32/tests/shlexec.c
View file @
d468dd2e
...
...
@@ -2742,7 +2742,7 @@ static void init_test(void)
desc
.
icon
=
NULL
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
sprintf
(
filename
,
"%s
\\
test_shortcut_exe.lnk"
,
tmpdir
);
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
lnkfile
,
ARRAY_SIZE
(
lnkfile
));
...
...
@@ -2756,7 +2756,7 @@ static void init_test(void)
desc
.
icon
=
NULL
;
desc
.
icon_id
=
0
;
desc
.
hotkey
=
0
;
create_lnk
(
lnkfile
,
&
desc
,
0
);
create_lnk
(
lnkfile
,
&
desc
);
/* Create a basic association suitable for most tests */
if
(
!
create_test_association
(
".shlexec"
))
...
...
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