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
632a6c79
Commit
632a6c79
authored
Oct 02, 2010
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Oct 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use the existing READYSTATE type instead of creating our own enum…
msxml3: Use the existing READYSTATE type instead of creating our own enum READYSTATE (and mixing the two).
parent
5c676679
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
httprequest.c
dlls/msxml3/httprequest.c
+4
-13
No files found.
dlls/msxml3/httprequest.c
View file @
632a6c79
...
...
@@ -50,15 +50,6 @@ struct reqheader
BSTR
value
;
};
enum
READYSTATE
{
STATE_UNINITIALIZED
=
0
,
STATE_LOADING
=
1
,
STATE_LOADED
=
2
,
STATE_INTERACTIVE
=
3
,
STATE_COMPLETED
=
4
};
typedef
struct
{
const
struct
IXMLHTTPRequestVtbl
*
lpVtbl
;
...
...
@@ -571,7 +562,7 @@ static HRESULT WINAPI httprequest_open(IXMLHTTPRequest *iface, BSTR method, BSTR
if
(
hr
==
S_OK
)
This
->
password
=
V_BSTR
(
&
str
);
httprequest_setreadystate
(
This
,
STATE_LOADING
);
httprequest_setreadystate
(
This
,
READY
STATE_LOADING
);
return
S_OK
;
}
...
...
@@ -584,7 +575,7 @@ static HRESULT WINAPI httprequest_setRequestHeader(IXMLHTTPRequest *iface, BSTR
TRACE
(
"(%p)->(%s %s)
\n
"
,
This
,
debugstr_w
(
header
),
debugstr_w
(
value
));
if
(
!
header
||
!*
header
)
return
E_INVALIDARG
;
if
(
This
->
state
!=
STATE_LOADING
)
return
E_FAIL
;
if
(
This
->
state
!=
READY
STATE_LOADING
)
return
E_FAIL
;
if
(
!
value
)
return
E_INVALIDARG
;
/* replace existing header value if already added */
...
...
@@ -634,7 +625,7 @@ static HRESULT WINAPI httprequest_send(IXMLHTTPRequest *iface, VARIANT varBody)
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
state
!=
STATE_LOADING
)
return
E_FAIL
;
if
(
This
->
state
!=
READY
STATE_LOADING
)
return
E_FAIL
;
hr
=
BindStatusCallback_create
(
This
,
&
bsc
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -771,7 +762,7 @@ HRESULT XMLHTTPRequest_create(IUnknown *pUnkOuter, void **ppObj)
req
->
async
=
FALSE
;
req
->
verb
=
-
1
;
req
->
url
=
req
->
user
=
req
->
password
=
NULL
;
req
->
state
=
STATE_UNINITIALIZED
;
req
->
state
=
READY
STATE_UNINITIALIZED
;
req
->
bsc
=
NULL
;
list_init
(
&
req
->
reqheaders
);
...
...
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