Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
9fd4f873
Commit
9fd4f873
authored
16 years ago
by
Paul Vriens
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
shlwapi/tests: Fix a few test failures on Win95 and some W2K.
parent
57d9a868
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/shlwapi/tests/path.c
+18
-6
18 additions, 6 deletions
dlls/shlwapi/tests/path.c
with
18 additions
and
6 deletions
dlls/shlwapi/tests/path.c
+
18
−
6
View file @
9fd4f873
...
...
@@ -392,8 +392,12 @@ static void test_PathCombineW(void)
/* Some NULL */
wszString2
[
0
]
=
'a'
;
wszString
=
pPathCombineW
(
wszString2
,
NULL
,
NULL
);
ok
(
wszString
==
NULL
,
"Expected a NULL return
\n
"
);
ok
(
wszString2
[
0
]
==
0
,
"Destination string not empty
\n
"
);
ok
(
wszString
==
NULL
||
broken
(
wszString
[
0
]
=
'a'
),
/* Win95 and some W2K */
"Expected a NULL return
\n
"
);
ok
(
wszString2
[
0
]
==
0
||
broken
(
wszString
[
0
]
=
'a'
),
/* Win95 and some W2K */
"Destination string not empty
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
wszString2
);
...
...
@@ -489,7 +493,9 @@ static void test_PathCombineA(void)
lstrcpyA
(
dest
,
"control"
);
str
=
PathCombineA
(
dest
,
NULL
,
NULL
);
ok
(
str
==
NULL
,
"Expected str == NULL, got %p
\n
"
,
str
);
ok
(
lstrlenA
(
dest
)
==
0
,
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
ok
(
lstrlenA
(
dest
)
==
0
||
broken
(
!
lstrcmp
(
dest
,
"control"
)),
/* Win95 and some W2K */
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
/* try directory without backslash */
...
...
@@ -577,7 +583,9 @@ static void test_PathCombineA(void)
lstrcpyA
(
dest
,
"control"
);
str
=
PathCombineA
(
dest
,
"C:
\\
"
,
too_long
);
ok
(
str
==
NULL
,
"Expected str == NULL, got %p
\n
"
,
str
);
ok
(
lstrlenA
(
dest
)
==
0
,
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
ok
(
lstrlenA
(
dest
)
==
0
||
broken
(
!
lstrcmp
(
dest
,
"control"
)),
/* Win95 and some W2K */
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
todo_wine
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
/* try a directory longer than MAX_PATH */
...
...
@@ -585,7 +593,9 @@ static void test_PathCombineA(void)
lstrcpyA
(
dest
,
"control"
);
str
=
PathCombineA
(
dest
,
too_long
,
"one
\\
two
\\
three"
);
ok
(
str
==
NULL
,
"Expected str == NULL, got %p
\n
"
,
str
);
ok
(
lstrlenA
(
dest
)
==
0
,
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
ok
(
lstrlenA
(
dest
)
==
0
||
broken
(
!
lstrcmp
(
dest
,
"control"
)),
/* Win95 and some W2K */
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
todo_wine
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
memset
(
one
,
'b'
,
HALF_LEN
);
...
...
@@ -598,7 +608,9 @@ static void test_PathCombineA(void)
lstrcpyA
(
dest
,
"control"
);
str
=
PathCombineA
(
dest
,
one
,
two
);
ok
(
str
==
NULL
,
"Expected str == NULL, got %p
\n
"
,
str
);
ok
(
lstrlenA
(
dest
)
==
0
,
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
ok
(
lstrlenA
(
dest
)
==
0
||
broken
(
!
lstrcmp
(
dest
,
"control"
)),
/* Win95 and some W2K */
"Expected 0 length, got %i
\n
"
,
lstrlenA
(
dest
));
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment