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
29c66b3a
Commit
29c66b3a
authored
Jul 20, 2008
by
Reece Dunn
Committed by
Alexandre Julliard
Jul 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Do not use a fixed path in the shelllink tests.
parent
0feda920
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
shelllink.c
dlls/shell32/tests/shelllink.c
+14
-3
No files found.
dlls/shell32/tests/shelllink.c
View file @
29c66b3a
...
...
@@ -49,7 +49,6 @@ static const GUID _IID_IShellLinkDataList = {
{
0xb9
,
0x2f
,
0x00
,
0xa0
,
0xc9
,
0x03
,
0x12
,
0xe1
}
};
static
const
WCHAR
lnkfile
[]
=
{
'C'
,
':'
,
'\\'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'l'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
notafile
[]
=
{
'C'
,
':'
,
'\\'
,
'n'
,
'o'
,
'n'
,
'e'
,
'x'
,
'i'
,
's'
,
't'
,
'e'
,
'n'
,
't'
,
'\\'
,
'f'
,
'i'
,
'l'
,
'e'
,
0
};
...
...
@@ -494,6 +493,12 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int todo)
static
void
test_load_save
(
void
)
{
WCHAR
lnkfile
[
MAX_PATH
];
static
const
WCHAR
lnkfile_name
[]
=
{
'\\'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'l'
,
'n'
,
'k'
,
'\0'
};
char
lnkfileA
[
MAX_PATH
];
static
const
char
lnkfileA_name
[]
=
"
\\
test.lnk"
;
lnk_desc_t
desc
;
char
mypath
[
MAX_PATH
];
char
mydir
[
MAX_PATH
];
...
...
@@ -508,6 +513,12 @@ static void test_load_save(void)
return
;
}
/* Don't used a fixed path for the test.lnk file */
GetTempPathW
(
MAX_PATH
,
lnkfile
);
lstrcatW
(
lnkfile
,
lnkfile_name
);
GetTempPathA
(
MAX_PATH
,
lnkfileA
);
lstrcatA
(
lnkfileA
,
lnkfileA_name
);
/* Save an empty .lnk file */
memset
(
&
desc
,
0
,
sizeof
(
desc
));
create_lnk
(
lnkfile
,
&
desc
,
0
);
...
...
@@ -608,8 +619,8 @@ static void test_load_save(void)
*/
/* DeleteFileW is not implemented on Win9x */
r
=
DeleteFileA
(
"c:
\\
test.lnk"
);
ok
(
r
,
"failed to delete link
(%d)
\n
"
,
GetLastError
());
r
=
DeleteFileA
(
lnkfileA
);
ok
(
r
,
"failed to delete link
'%s' (%d)
\n
"
,
lnkfileA
,
GetLastError
());
}
static
void
test_datalink
(
void
)
...
...
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