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
d7357a49
Commit
d7357a49
authored
Jul 22, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of off-by-one errors.
parent
73bd3be8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
http.c
dlls/wininet/http.c
+3
-3
No files found.
dlls/wininet/http.c
View file @
d7357a49
...
@@ -1551,8 +1551,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
...
@@ -1551,8 +1551,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
}
}
/* allocate space for an array of all the string pointers to be added */
/* allocate space for an array of all the string pointers to be added */
len
=
(
HTTP_QUERY_MAX
+
lpwhr
->
nCustHeaders
)
*
4
+
8
;
len
=
(
HTTP_QUERY_MAX
+
lpwhr
->
nCustHeaders
)
*
4
+
9
;
req
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
*
sizeof
(
LPCWSTR
)
);
req
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
LPCWSTR
)
);
/* add the verb, path and HTTP/1.0 */
/* add the verb, path and HTTP/1.0 */
n
=
0
;
n
=
0
;
...
@@ -1604,7 +1604,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
...
@@ -1604,7 +1604,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
req
[
n
++
]
=
lpwhr
->
lpszHostName
;
req
[
n
++
]
=
lpwhr
->
lpszHostName
;
}
}
if
(
n
>
len
)
if
(
n
>
=
len
)
ERR
(
"oops. buffer overrun
\n
"
);
ERR
(
"oops. buffer overrun
\n
"
);
req
[
n
]
=
NULL
;
req
[
n
]
=
NULL
;
...
...
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