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
288a48fc
Commit
288a48fc
authored
May 26, 2008
by
Jon Griffiths
Committed by
Alexandre Julliard
May 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Fix 3 tests that always fail on Vista.
parent
713290eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
string.c
dlls/msvcrt/tests/string.c
+6
-3
No files found.
dlls/msvcrt/tests/string.c
View file @
288a48fc
...
...
@@ -589,8 +589,11 @@ static void test_wcscpy_s(void)
/* Test invalid size */
szDest
[
0
]
=
'A'
;
ret
=
p_wcscpy_s
(
szDest
,
0
,
szLongText
);
ok
(
ret
==
ERANGE
,
"expected ERANGE got %d
\n
"
,
ret
);
ok
(
szDest
[
0
]
==
0
,
"szDest[0] not 0
\n
"
);
/* Later versions changed the return value for this case to EINVAL,
* and don't modify the result if the dest size is 0.
*/
ok
(
ret
==
ERANGE
||
ret
==
EINVAL
,
"expected ERANGE/EINVAL got %d
\n
"
,
ret
);
ok
(
szDest
[
0
]
==
0
||
ret
==
EINVAL
,
"szDest[0] not 0
\n
"
);
/* Copy same buffer size */
ret
=
p_wcscpy_s
(
szDest
,
18
,
szLongText
);
...
...
@@ -600,7 +603,7 @@ static void test_wcscpy_s(void)
/* Copy smaller buffer size */
szDest
[
0
]
=
'A'
;
ret
=
p_wcscpy_s
(
szDestShort
,
8
,
szLongText
);
ok
(
ret
==
E
INVAL
,
"expected
EINVAL got %d
\n
"
,
ret
);
ok
(
ret
==
E
RANGE
||
ret
==
EINVAL
,
"expected ERANGE/
EINVAL got %d
\n
"
,
ret
);
ok
(
szDestShort
[
0
]
==
0
,
"szDestShort[0] not 0
\n
"
);
}
...
...
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