urlmon: Fix the case of the BINDINFO.cbstgmedData field. Fixes the htmldoc test compilation on Windows.
This commit is contained in:
parent
ceb06a2f00
commit
dc0cfe7729
|
@ -364,7 +364,7 @@ static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
|
|||
memset(pbindinfo, 0, size);
|
||||
pbindinfo->cbSize = size;
|
||||
|
||||
pbindinfo->cbStgmedData = This->post_data_len;
|
||||
pbindinfo->cbstgmedData = This->post_data_len;
|
||||
pbindinfo->dwCodePage = CP_UTF8;
|
||||
pbindinfo->dwOptions = 0x80000;
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ static nsIInputStream *get_post_data_stream(IBindCtx *bctx)
|
|||
hres = IBindStatusCallback_GetBindInfo(callback, &bindf, &bindinfo);
|
||||
|
||||
if(SUCCEEDED(hres) && bindinfo.dwBindVerb == BINDVERB_POST)
|
||||
post_len = bindinfo.cbStgmedData;
|
||||
post_len = bindinfo.cbstgmedData;
|
||||
|
||||
if(headers_len || post_len) {
|
||||
int len = headers_len ? headers_len-1 : 0;
|
||||
|
|
|
@ -447,7 +447,7 @@ static HRESULT WINAPI Moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMon
|
|||
ok(bindinfo.grfBindInfoF == 0, "bindinfo.grfBinfInfoF=%08lx\n", bindinfo.grfBindInfoF);
|
||||
ok(bindinfo.dwBindVerb == 0, "bindinfo.dwBindVerb=%ld\n", bindinfo.dwBindVerb);
|
||||
ok(bindinfo.szCustomVerb == 0, "bindinfo.szCustomVerb=%p\n", bindinfo.szCustomVerb);
|
||||
ok(bindinfo.cbStgmedData == 0, "bindinfo.cbStgmedData=%ld\n", bindinfo.cbStgmedData);
|
||||
ok(bindinfo.cbstgmedData == 0, "bindinfo.cbstgmedData=%ld\n", bindinfo.cbstgmedData);
|
||||
ok(bindinfo.dwOptions == 0x80000, "bindinfo.dwOptions=%lx\n", bindinfo.dwOptions);
|
||||
ok(bindinfo.dwOptionsFlags == 0, "bindinfo.dwOptionsFlags=%ld\n", bindinfo.dwOptionsFlags);
|
||||
/* TODO: test dwCodePage */
|
||||
|
|
|
@ -79,7 +79,7 @@ static void dump_BINDINFO(BINDINFO *bi)
|
|||
bi->dwBindVerb > BINDVERB_CUSTOM
|
||||
? "unknown" : BINDVERB_str[bi->dwBindVerb],
|
||||
debugstr_w(bi->szCustomVerb),
|
||||
bi->cbStgmedData, bi->dwOptions, bi->dwOptionsFlags, bi->dwCodePage,
|
||||
bi->cbstgmedData, bi->dwOptions, bi->dwOptionsFlags, bi->dwCodePage,
|
||||
bi->securityAttributes.nLength,
|
||||
bi->securityAttributes.lpSecurityDescriptor,
|
||||
bi->securityAttributes.bInheritHandle,
|
||||
|
@ -195,7 +195,7 @@ static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
|
|||
memset(pbindinfo, 0, sizeof(BINDINFO));
|
||||
pbindinfo->cbSize = sizeof(BINDINFO);
|
||||
|
||||
pbindinfo->cbStgmedData = This->post_data_len;
|
||||
pbindinfo->cbstgmedData = This->post_data_len;
|
||||
|
||||
if(This->post_data) {
|
||||
pbindinfo->dwBindVerb = BINDVERB_POST;
|
||||
|
@ -539,7 +539,7 @@ HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
|
|||
hres = IBindStatusCallback_GetBindInfo(callback, &bindf, &bindinfo);
|
||||
dump_BINDINFO(&bindinfo);
|
||||
if(bindinfo.dwBindVerb == BINDVERB_POST) {
|
||||
post_data_len = bindinfo.cbStgmedData;
|
||||
post_data_len = bindinfo.cbstgmedData;
|
||||
if(post_data_len)
|
||||
post_data = bindinfo.stgmedData.u.hGlobal;
|
||||
}
|
||||
|
|
|
@ -339,7 +339,7 @@ static void dump_BINDINFO(BINDINFO *bi)
|
|||
bi->dwBindVerb > BINDVERB_CUSTOM
|
||||
? "unknown" : BINDVERB_str[bi->dwBindVerb],
|
||||
debugstr_w(bi->szCustomVerb),
|
||||
bi->cbStgmedData, bi->dwOptions, bi->dwOptionsFlags, bi->dwCodePage,
|
||||
bi->cbstgmedData, bi->dwOptions, bi->dwOptionsFlags, bi->dwCodePage,
|
||||
bi->securityAttributes.nLength,
|
||||
bi->securityAttributes.lpSecurityDescriptor,
|
||||
bi->securityAttributes.bInheritHandle,
|
||||
|
|
|
@ -131,7 +131,7 @@ interface IBindStatusCallback : IUnknown
|
|||
DWORD grfBindInfoF;
|
||||
DWORD dwBindVerb;
|
||||
LPWSTR szCustomVerb;
|
||||
DWORD cbStgmedData;
|
||||
DWORD cbstgmedData;
|
||||
DWORD dwOptions;
|
||||
DWORD dwOptionsFlags;
|
||||
DWORD dwCodePage;
|
||||
|
|
Loading…
Reference in New Issue