Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
40658789
Commit
40658789
authored
Jan 09, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix a test that fails on Win2k.
parent
e00cc024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
string.c
dlls/ntdll/tests/string.c
+8
-5
No files found.
dlls/ntdll/tests/string.c
View file @
40658789
...
...
@@ -1281,12 +1281,15 @@ static void test__snprintf(void)
int
res
;
res
=
p__snprintf
(
NULL
,
0
,
teststring
);
ok
(
res
==
lstrlenA
(
teststring
),
"_snprintf returned %d, expected %d.
\n
"
,
res
,
lstrlenA
(
teststring
));
res
=
p__snprintf
(
NULL
,
1
,
teststring
);
ok
(
res
==
lstrlenA
(
teststring
)
/* WinXP */
||
res
<
0
/* Vista and greater */
,
"_snprintf returned %d, expected %d or < 0.
\n
"
,
res
,
lstrlenA
(
teststring
));
ok
(
res
==
lstrlenA
(
teststring
)
||
broken
(
res
==
-
1
)
/* <= w2k */
,
"_snprintf returned %d, expected %d.
\n
"
,
res
,
lstrlenA
(
teststring
));
if
(
res
!=
-
1
)
{
res
=
p__snprintf
(
NULL
,
1
,
teststring
);
ok
(
res
==
lstrlenA
(
teststring
)
/* WinXP */
||
res
<
0
/* Vista and greater */
,
"_snprintf returned %d, expected %d or < 0.
\n
"
,
res
,
lstrlenA
(
teststring
));
}
res
=
p__snprintf
(
buffer
,
strlen
(
teststring
)
-
1
,
teststring
);
ok
(
res
<
0
,
"_snprintf returned %d, expected < 0.
\n
"
,
res
);
...
...
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