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
97f4bfa7
Commit
97f4bfa7
authored
Jan 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Use ~0u instead of ~0ul for DWORD values.
parent
d3ed2df9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
url.c
dlls/winhttp/tests/url.c
+10
-10
winhttp.c
dlls/winhttp/tests/winhttp.c
+6
-6
No files found.
dlls/winhttp/tests/url.c
View file @
97f4bfa7
...
...
@@ -124,12 +124,12 @@ static void WinHttpCreateUrl_test( void )
BOOL
ret
;
/* NULL components */
len
=
~
0
UL
;
len
=
~
0
u
;
SetLastError
(
0xdeadbeef
);
ret
=
WinHttpCreateUrl
(
NULL
,
0
,
NULL
,
&
len
);
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
GetLastError
()
);
ok
(
len
==
~
0
UL
,
"expected len ~0UL
got %u
\n
"
,
len
);
ok
(
len
==
~
0
u
,
"expected len ~0u
got %u
\n
"
,
len
);
/* zero'ed components */
memset
(
&
uc
,
0
,
sizeof
(
URL_COMPONENTS
)
);
...
...
@@ -137,7 +137,7 @@ static void WinHttpCreateUrl_test( void )
ret
=
WinHttpCreateUrl
(
&
uc
,
0
,
NULL
,
&
len
);
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
GetLastError
()
);
ok
(
len
==
~
0
UL
,
"expected len ~0UL
got %u
\n
"
,
len
);
ok
(
len
==
~
0
u
,
"expected len ~0u
got %u
\n
"
,
len
);
/* valid components, NULL url, NULL length */
fill_url_components
(
&
uc
);
...
...
@@ -145,7 +145,7 @@ static void WinHttpCreateUrl_test( void )
ret
=
WinHttpCreateUrl
(
&
uc
,
0
,
NULL
,
NULL
);
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
GetLastError
()
);
ok
(
len
==
~
0
UL
,
"expected len ~0UL
got %u
\n
"
,
len
);
ok
(
len
==
~
0
u
,
"expected len ~0u
got %u
\n
"
,
len
);
/* valid components, NULL url */
SetLastError
(
0xdeadbeef
);
...
...
@@ -310,13 +310,13 @@ static void reset_url_components( URL_COMPONENTS *uc )
{
memset
(
uc
,
0
,
sizeof
(
URL_COMPONENTS
)
);
uc
->
dwStructSize
=
sizeof
(
URL_COMPONENTS
);
uc
->
dwSchemeLength
=
~
0
UL
;
uc
->
dwHostNameLength
=
~
0
UL
;
uc
->
dwSchemeLength
=
~
0
u
;
uc
->
dwHostNameLength
=
~
0
u
;
uc
->
nPort
=
0
;
uc
->
dwUserNameLength
=
~
0
UL
;
uc
->
dwPasswordLength
=
~
0
UL
;
uc
->
dwUrlPathLength
=
~
0
UL
;
uc
->
dwExtraInfoLength
=
~
0
UL
;
uc
->
dwUserNameLength
=
~
0
u
;
uc
->
dwPasswordLength
=
~
0
u
;
uc
->
dwUrlPathLength
=
~
0
u
;
uc
->
dwExtraInfoLength
=
~
0
u
;
}
static
void
WinHttpCrackUrl_test
(
void
)
...
...
dlls/winhttp/tests/winhttp.c
View file @
97f4bfa7
...
...
@@ -665,22 +665,22 @@ static void test_WinHttpAddHeaders(void)
test_header_name
,
buffer
,
&
len
,
&
index
);
ok
(
ret
==
FALSE
,
"WinHttpQueryHeaders succeeded unexpectedly, found third header.
\n
"
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
8
],
~
0
UL
,
WINHTTP_ADDREQ_FLAG_ADD
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
8
],
~
0
u
,
WINHTTP_ADDREQ_FLAG_ADD
);
ok
(
!
ret
,
"WinHttpAddRequestHeaders failed
\n
"
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
9
],
~
0
UL
,
WINHTTP_ADDREQ_FLAG_ADD
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
9
],
~
0
u
,
WINHTTP_ADDREQ_FLAG_ADD
);
ok
(
ret
,
"WinHttpAddRequestHeaders failed
\n
"
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
10
],
~
0
UL
,
WINHTTP_ADDREQ_FLAG_ADD
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
10
],
~
0
u
,
WINHTTP_ADDREQ_FLAG_ADD
);
ok
(
!
ret
,
"WinHttpAddRequestHeaders failed
\n
"
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
11
],
~
0
UL
,
WINHTTP_ADDREQ_FLAG_ADD
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
11
],
~
0
u
,
WINHTTP_ADDREQ_FLAG_ADD
);
ok
(
!
ret
,
"WinHttpAddRequestHeaders failed
\n
"
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
12
],
~
0
UL
,
WINHTTP_ADDREQ_FLAG_ADD
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
12
],
~
0
u
,
WINHTTP_ADDREQ_FLAG_ADD
);
ok
(
!
ret
,
"WinHttpAddRequestHeaders failed
\n
"
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
13
],
~
0
UL
,
WINHTTP_ADDREQ_FLAG_ADD
);
ret
=
WinHttpAddRequestHeaders
(
request
,
test_headers
[
13
],
~
0
u
,
WINHTTP_ADDREQ_FLAG_ADD
);
ok
(
ret
,
"WinHttpAddRequestHeaders failed
\n
"
);
index
=
0
;
...
...
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