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
83a4dbaa
Commit
83a4dbaa
authored
Nov 09, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Nov 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Skip strcmp() in a test if the returned value/len is wrong.
parent
a1e55473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
internet.c
dlls/wininet/tests/internet.c
+5
-2
No files found.
dlls/wininet/tests/internet.c
View file @
83a4dbaa
...
...
@@ -142,9 +142,12 @@ static void test_InternetQueryOptionA(void)
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
retval
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_USER_AGENT
,
buffer
,
&
len
);
err
=
GetLastError
();
todo_wine
ok
(
!
strcmp
(
useragent
,
buffer
),
"Got wrong user agent string %s instead of %s
\n
"
,
buffer
,
useragent
);
todo_wine
ok
(
len
==
strlen
(
useragent
),
"Got wrong user agent length %d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
));
todo_wine
ok
(
retval
==
1
,
"Got wrong return value %d
\n
"
,
retval
);
if
(
retval
)
{
todo_wine
ok
(
!
strcmp
(
useragent
,
buffer
),
"Got wrong user agent string %s instead of %s
\n
"
,
buffer
,
useragent
);
todo_wine
ok
(
len
==
strlen
(
useragent
),
"Got wrong user agent length %d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
));
}
ok
(
err
==
0xdeadbeef
,
"Got wrong error code %d
\n
"
,
err
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
...
...
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