Commit fd23136e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

mshtml: Fix the spelling of some variable and field names.

parent 77e8de51
...@@ -80,7 +80,7 @@ struct BSCallback { ...@@ -80,7 +80,7 @@ struct BSCallback {
LONG ref; LONG ref;
request_data_t request_data; request_data_t request_data;
ULONG readed; ULONG read;
DWORD bindf; DWORD bindf;
DWORD bindinfo_options; DWORD bindinfo_options;
BOOL bindinfo_ready; BOOL bindinfo_ready;
......
...@@ -690,7 +690,7 @@ HRESULT read_stream(BSCallback *This, IStream *stream, void *buf, DWORD size, DW ...@@ -690,7 +690,7 @@ HRESULT read_stream(BSCallback *This, IStream *stream, void *buf, DWORD size, DW
hres = IStream_Read(stream, buf, size, &read_size); hres = IStream_Read(stream, buf, size, &read_size);
if(!This->readed && This->bom == BOM_NONE) { if(!This->read && This->bom == BOM_NONE) {
if(read_size >= 2 && data[0] == 0xff && data[1] == 0xfe) { if(read_size >= 2 && data[0] == 0xff && data[1] == 0xfe) {
This->bom = BOM_UTF16; This->bom = BOM_UTF16;
skip = 2; skip = 2;
...@@ -705,7 +705,7 @@ HRESULT read_stream(BSCallback *This, IStream *stream, void *buf, DWORD size, DW ...@@ -705,7 +705,7 @@ HRESULT read_stream(BSCallback *This, IStream *stream, void *buf, DWORD size, DW
} }
} }
This->readed += read_size; This->read += read_size;
*ret_size = read_size; *ret_size = read_size;
return hres; return hres;
} }
...@@ -1092,7 +1092,7 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream) ...@@ -1092,7 +1092,7 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
} }
do { do {
BOOL first_read = !This->bsc.readed; BOOL first_read = !This->bsc.read;
hres = read_stream(&This->bsc, stream, This->nsstream->buf+This->nsstream->buf_size, hres = read_stream(&This->bsc, stream, This->nsstream->buf+This->nsstream->buf_size,
sizeof(This->nsstream->buf)-This->nsstream->buf_size, &read); sizeof(This->nsstream->buf)-This->nsstream->buf_size, &read);
...@@ -1135,7 +1135,7 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream) ...@@ -1135,7 +1135,7 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
nsres = nsIStreamListener_OnDataAvailable(This->nslistener, nsres = nsIStreamListener_OnDataAvailable(This->nslistener,
(nsIRequest*)&This->nschannel->nsIHttpChannel_iface, This->nscontext, (nsIRequest*)&This->nschannel->nsIHttpChannel_iface, This->nscontext,
&This->nsstream->nsIInputStream_iface, This->bsc.readed-This->nsstream->buf_size, &This->nsstream->nsIInputStream_iface, This->bsc.read-This->nsstream->buf_size,
This->nsstream->buf_size); This->nsstream->buf_size);
if(NS_FAILED(nsres)) if(NS_FAILED(nsres))
ERR("OnDataAvailable failed: %08x\n", nsres); ERR("OnDataAvailable failed: %08x\n", nsres);
...@@ -1365,7 +1365,7 @@ static HRESULT async_stop_request(nsChannelBSC *This) ...@@ -1365,7 +1365,7 @@ static HRESULT async_stop_request(nsChannelBSC *This)
{ {
stop_request_task_t *task; stop_request_task_t *task;
if(!This->bsc.readed) { if(!This->bsc.read) {
TRACE("No data read, calling OnStartRequest\n"); TRACE("No data read, calling OnStartRequest\n");
on_start_nsrequest(This); on_start_nsrequest(This);
} }
......
...@@ -824,7 +824,7 @@ static HRESULT get_binding_text(ScriptBSC *bsc, WCHAR **ret) ...@@ -824,7 +824,7 @@ static HRESULT get_binding_text(ScriptBSC *bsc, WCHAR **ret)
UINT cp = CP_UTF8; UINT cp = CP_UTF8;
WCHAR *text; WCHAR *text;
if(!bsc->bsc.readed) { if(!bsc->bsc.read) {
text = heap_alloc(sizeof(WCHAR)); text = heap_alloc(sizeof(WCHAR));
if(!text) if(!text)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
...@@ -835,17 +835,17 @@ static HRESULT get_binding_text(ScriptBSC *bsc, WCHAR **ret) ...@@ -835,17 +835,17 @@ static HRESULT get_binding_text(ScriptBSC *bsc, WCHAR **ret)
switch(bsc->bsc.bom) { switch(bsc->bsc.bom) {
case BOM_UTF16: case BOM_UTF16:
if(bsc->bsc.readed % sizeof(WCHAR)) { if(bsc->bsc.read % sizeof(WCHAR)) {
FIXME("The buffer is not a valid utf16 string\n"); FIXME("The buffer is not a valid utf16 string\n");
return E_FAIL; return E_FAIL;
} }
text = heap_alloc(bsc->bsc.readed+sizeof(WCHAR)); text = heap_alloc(bsc->bsc.read+sizeof(WCHAR));
if(!text) if(!text)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
memcpy(text, bsc->buf, bsc->bsc.readed); memcpy(text, bsc->buf, bsc->bsc.read);
text[bsc->bsc.readed/sizeof(WCHAR)] = 0; text[bsc->bsc.read/sizeof(WCHAR)] = 0;
break; break;
default: default:
...@@ -855,12 +855,12 @@ static HRESULT get_binding_text(ScriptBSC *bsc, WCHAR **ret) ...@@ -855,12 +855,12 @@ static HRESULT get_binding_text(ScriptBSC *bsc, WCHAR **ret)
case BOM_UTF8: { case BOM_UTF8: {
DWORD len; DWORD len;
len = MultiByteToWideChar(cp, 0, bsc->buf, bsc->bsc.readed, NULL, 0); len = MultiByteToWideChar(cp, 0, bsc->buf, bsc->bsc.read, NULL, 0);
text = heap_alloc((len+1)*sizeof(WCHAR)); text = heap_alloc((len+1)*sizeof(WCHAR));
if(!text) if(!text)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
MultiByteToWideChar(cp, 0, bsc->buf, bsc->bsc.readed, text, len); MultiByteToWideChar(cp, 0, bsc->buf, bsc->bsc.read, text, len);
text[len] = 0; text[len] = 0;
} }
} }
...@@ -988,7 +988,7 @@ static HRESULT ScriptBSC_stop_binding(BSCallback *bsc, HRESULT result) ...@@ -988,7 +988,7 @@ static HRESULT ScriptBSC_stop_binding(BSCallback *bsc, HRESULT result)
static HRESULT ScriptBSC_read_data(BSCallback *bsc, IStream *stream) static HRESULT ScriptBSC_read_data(BSCallback *bsc, IStream *stream)
{ {
ScriptBSC *This = impl_from_BSCallback(bsc); ScriptBSC *This = impl_from_BSCallback(bsc);
DWORD readed; DWORD read;
HRESULT hres; HRESULT hres;
if(!This->buf) { if(!This->buf) {
...@@ -999,7 +999,7 @@ static HRESULT ScriptBSC_read_data(BSCallback *bsc, IStream *stream) ...@@ -999,7 +999,7 @@ static HRESULT ScriptBSC_read_data(BSCallback *bsc, IStream *stream)
} }
do { do {
if(This->bsc.readed >= This->size) { if(This->bsc.read >= This->size) {
void *new_buf; void *new_buf;
new_buf = heap_realloc(This->buf, This->size << 1); new_buf = heap_realloc(This->buf, This->size << 1);
if(!new_buf) if(!new_buf)
...@@ -1008,7 +1008,7 @@ static HRESULT ScriptBSC_read_data(BSCallback *bsc, IStream *stream) ...@@ -1008,7 +1008,7 @@ static HRESULT ScriptBSC_read_data(BSCallback *bsc, IStream *stream)
This->buf = new_buf; This->buf = new_buf;
} }
hres = read_stream(&This->bsc, stream, This->buf+This->bsc.readed, This->size-This->bsc.readed, &readed); hres = read_stream(&This->bsc, stream, This->buf+This->bsc.read, This->size-This->bsc.read, &read);
}while(hres == S_OK); }while(hres == S_OK);
return S_OK; return S_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment