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
9ae14c8e
Commit
9ae14c8e
authored
Apr 22, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix some test failures on NT4.
parent
9b9d8dc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
shlfileop.c
dlls/shell32/tests/shlfileop.c
+12
-4
No files found.
dlls/shell32/tests/shlfileop.c
View file @
9ae14c8e
...
...
@@ -2063,21 +2063,27 @@ static void test_sh_new_link_info(void)
set_curr_dir_path
(
linkto
,
"nosuchfile.txt
\0
"
);
set_curr_dir_path
(
destdir
,
"testdir2
\0
"
);
ret
=
SHGetNewLinkInfoA
(
linkto
,
destdir
,
result
,
&
mustcopy
,
0
);
ok
(
ret
==
FALSE
,
"SHGetNewLinkInfoA succeeded
\n
"
);
ok
(
ret
==
FALSE
||
broken
(
ret
==
lstrlenA
(
result
)
+
1
),
/* NT4 */
"SHGetNewLinkInfoA succeeded
\n
"
);
ok
(
mustcopy
==
FALSE
,
"mustcopy should be FALSE
\n
"
);
/* dest dir does not exist */
set_curr_dir_path
(
linkto
,
"test1.txt
\0
"
);
set_curr_dir_path
(
destdir
,
"nosuchdir
\0
"
);
ret
=
SHGetNewLinkInfoA
(
linkto
,
destdir
,
result
,
&
mustcopy
,
0
);
ok
(
ret
==
TRUE
,
"SHGetNewLinkInfoA failed, err=%i
\n
"
,
GetLastError
());
ok
(
ret
==
TRUE
||
broken
(
ret
==
lstrlenA
(
result
)
+
1
),
/* NT4 */
"SHGetNewLinkInfoA failed, err=%i
\n
"
,
GetLastError
());
ok
(
mustcopy
==
FALSE
,
"mustcopy should be FALSE
\n
"
);
/* source file exists */
set_curr_dir_path
(
linkto
,
"test1.txt
\0
"
);
set_curr_dir_path
(
destdir
,
"testdir2
\0
"
);
ret
=
SHGetNewLinkInfoA
(
linkto
,
destdir
,
result
,
&
mustcopy
,
0
);
ok
(
ret
==
TRUE
,
"SHGetNewLinkInfoA failed, err=%i
\n
"
,
GetLastError
());
ok
(
ret
==
TRUE
||
broken
(
ret
==
lstrlenA
(
result
)
+
1
),
/* NT4 */
"SHGetNewLinkInfoA failed, err=%i
\n
"
,
GetLastError
());
ok
(
mustcopy
==
FALSE
,
"mustcopy should be FALSE
\n
"
);
ok
(
CompareStringA
(
LOCALE_SYSTEM_DEFAULT
,
NORM_IGNORECASE
,
destdir
,
lstrlenA
(
destdir
),
result
,
lstrlenA
(
destdir
))
==
CSTR_EQUAL
,
...
...
@@ -2088,7 +2094,9 @@ static void test_sh_new_link_info(void)
/* preferred target name already exists */
createTestFile
(
result
);
ret
=
SHGetNewLinkInfoA
(
linkto
,
destdir
,
result2
,
&
mustcopy
,
0
);
ok
(
ret
==
TRUE
,
"SHGetNewLinkInfoA failed, err=%i
\n
"
,
GetLastError
());
ok
(
ret
==
TRUE
||
broken
(
ret
==
lstrlenA
(
result2
)
+
1
),
/* NT4 */
"SHGetNewLinkInfoA failed, err=%i
\n
"
,
GetLastError
());
ok
(
mustcopy
==
FALSE
,
"mustcopy should be FALSE
\n
"
);
ok
(
CompareStringA
(
LOCALE_SYSTEM_DEFAULT
,
NORM_IGNORECASE
,
destdir
,
lstrlenA
(
destdir
),
result2
,
lstrlenA
(
destdir
))
==
CSTR_EQUAL
,
...
...
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