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
10b2d6db
Commit
10b2d6db
authored
Jan 05, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw/tests: Fix test failures on XP SP2 and higher.
parent
49da5031
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
shdocvw.c
dlls/shdocvw/tests/shdocvw.c
+8
-6
No files found.
dlls/shdocvw/tests/shdocvw.c
View file @
10b2d6db
...
...
@@ -251,9 +251,10 @@ static void test_ParseURLFromOutsideSourceA(void)
len
=
maxlen
-
1
;
dummy
=
0
;
res
=
pParseURLFromOutsideSourceA
(
ParseURL_table
[
i
].
url
,
buffer
,
&
len
,
&
dummy
);
ok
(
res
==
0
&&
len
==
ParseURL_table
[
i
].
len
+
1
,
"#%d (-1): got %d and %d (expected '0' and %d)
\n
"
,
i
,
res
,
len
,
ParseURL_table
[
i
].
len
+
1
);
/* len includes the terminating 0 on XP SP1 and before, when the buffer is too small */
ok
(
res
==
0
&&
(
len
==
ParseURL_table
[
i
].
len
||
len
==
ParseURL_table
[
i
].
len
+
1
),
"#%d (-1): got %d and %d (expected '0' and %d or %d)
\n
"
,
i
,
res
,
len
,
ParseURL_table
[
i
].
len
,
ParseURL_table
[
i
].
len
+
1
);
memset
(
buffer
,
'#'
,
sizeof
(
buffer
)
-
1
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
'\0'
;
...
...
@@ -341,9 +342,10 @@ static void test_ParseURLFromOutsideSourceW(void)
len
=
maxlen
-
1
;
dummy
=
0
;
res
=
pParseURLFromOutsideSourceW
(
urlW
,
bufferW
,
&
len
,
&
dummy
);
ok
(
res
==
0
&&
len
==
ParseURL_table
[
0
].
len
+
1
,
"-1: got %d and %d (expected '0' and %d)
\n
"
,
res
,
len
,
ParseURL_table
[
0
].
len
+
1
);
/* len includes the terminating 0 on XP SP1 and before, when the buffer is too small */
ok
(
res
==
0
&&
(
len
==
ParseURL_table
[
0
].
len
||
len
==
ParseURL_table
[
0
].
len
+
1
),
"-1: got %d and %d (expected '0' and %d or %d)
\n
"
,
res
,
len
,
ParseURL_table
[
0
].
len
,
ParseURL_table
[
0
].
len
+
1
);
}
...
...
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