Commit c4881640 authored by Alexandre Julliard's avatar Alexandre Julliard

ieframe: Use nameless unions/structs.

parent a40b2139
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION
#include "ieframe.h" #include "ieframe.h"
#include "shlobj.h" #include "shlobj.h"
...@@ -507,7 +505,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam ...@@ -507,7 +505,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
PROPSPEC ps; PROPSPEC ps;
PROPVARIANT pv; PROPVARIANT pv;
ps.ulKind = PRSPEC_PROPID; ps.ulKind = PRSPEC_PROPID;
ps.u.propid = PID_IS_ICONFILE; ps.propid = PID_IS_ICONFILE;
pv.vt = VT_LPWSTR; pv.vt = VT_LPWSTR;
pv.pwszVal = iconfile; pv.pwszVal = iconfile;
hr = IPropertyStorage_WriteMultiple(pPropStg, 1, &ps, &pv, 0); hr = IPropertyStorage_WriteMultiple(pPropStg, 1, &ps, &pv, 0);
...@@ -523,7 +521,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam ...@@ -523,7 +521,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
PROPVARIANT pv; PROPVARIANT pv;
iconindex = wcstol(iconindexstring, NULL, 10); iconindex = wcstol(iconindexstring, NULL, 10);
ps.ulKind = PRSPEC_PROPID; ps.ulKind = PRSPEC_PROPID;
ps.u.propid = PID_IS_ICONINDEX; ps.propid = PID_IS_ICONINDEX;
pv.vt = VT_I4; pv.vt = VT_I4;
pv.iVal = iconindex; pv.iVal = iconindex;
hr = IPropertyStorage_WriteMultiple(pPropStg, 1, &ps, &pv, 0); hr = IPropertyStorage_WriteMultiple(pPropStg, 1, &ps, &pv, 0);
...@@ -583,9 +581,9 @@ static HRESULT WINAPI PersistFile_Save(IPersistFile *pFile, LPCOLESTR pszFileNam ...@@ -583,9 +581,9 @@ static HRESULT WINAPI PersistFile_Save(IPersistFile *pFile, LPCOLESTR pszFileNam
PROPSPEC ps[2]; PROPSPEC ps[2];
PROPVARIANT pvread[2]; PROPVARIANT pvread[2];
ps[0].ulKind = PRSPEC_PROPID; ps[0].ulKind = PRSPEC_PROPID;
ps[0].u.propid = PID_IS_ICONFILE; ps[0].propid = PID_IS_ICONFILE;
ps[1].ulKind = PRSPEC_PROPID; ps[1].ulKind = PRSPEC_PROPID;
ps[1].u.propid = PID_IS_ICONINDEX; ps[1].propid = PID_IS_ICONINDEX;
WriteFile(file, str_header, ARRAY_SIZE(str_header) - 1, &bytesWritten, NULL); WriteFile(file, str_header, ARRAY_SIZE(str_header) - 1, &bytesWritten, NULL);
WriteFile(file, str_eol, ARRAY_SIZE(str_eol) - 1, &bytesWritten, NULL); WriteFile(file, str_eol, ARRAY_SIZE(str_eol) - 1, &bytesWritten, NULL);
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define NONAMELESSUNION
#include "ieframe.h" #include "ieframe.h"
#include "exdispid.h" #include "exdispid.h"
...@@ -80,7 +78,7 @@ static void dump_BINDINFO(BINDINFO *bi) ...@@ -80,7 +78,7 @@ static void dump_BINDINFO(BINDINFO *bi)
"}\n", "}\n",
bi->cbSize, debugstr_w(bi->szExtraInfo), bi->cbSize, debugstr_w(bi->szExtraInfo),
bi->stgmedData.tymed, bi->stgmedData.u.hGlobal, bi->stgmedData.pUnkForRelease, bi->stgmedData.tymed, bi->stgmedData.hGlobal, bi->stgmedData.pUnkForRelease,
bi->grfBindInfoF > BINDINFOF_URLENCODEDEXTRAINFO bi->grfBindInfoF > BINDINFOF_URLENCODEDEXTRAINFO
? "unknown" : BINDINFOF_str[bi->grfBindInfoF], ? "unknown" : BINDINFOF_str[bi->grfBindInfoF],
bi->dwBindVerb > BINDVERB_CUSTOM bi->dwBindVerb > BINDVERB_CUSTOM
...@@ -392,7 +390,7 @@ static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface, ...@@ -392,7 +390,7 @@ static HRESULT WINAPI BindStatusCallback_GetBindInfo(IBindStatusCallback *iface,
pbindinfo->dwBindVerb = BINDVERB_POST; pbindinfo->dwBindVerb = BINDVERB_POST;
pbindinfo->stgmedData.tymed = TYMED_HGLOBAL; pbindinfo->stgmedData.tymed = TYMED_HGLOBAL;
pbindinfo->stgmedData.u.hGlobal = This->post_data; pbindinfo->stgmedData.hGlobal = This->post_data;
pbindinfo->cbstgmedData = This->post_data_len; pbindinfo->cbstgmedData = This->post_data_len;
pbindinfo->stgmedData.pUnkForRelease = (IUnknown*)&This->IBindStatusCallback_iface; pbindinfo->stgmedData.pUnkForRelease = (IUnknown*)&This->IBindStatusCallback_iface;
IBindStatusCallback_AddRef(&This->IBindStatusCallback_iface); IBindStatusCallback_AddRef(&This->IBindStatusCallback_iface);
...@@ -1040,7 +1038,7 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx, ...@@ -1040,7 +1038,7 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
if(bindinfo.dwBindVerb == BINDVERB_POST) { if(bindinfo.dwBindVerb == BINDVERB_POST) {
post_data_len = bindinfo.cbstgmedData; post_data_len = bindinfo.cbstgmedData;
if(post_data_len) if(post_data_len)
post_data = bindinfo.stgmedData.u.hGlobal; post_data = bindinfo.stgmedData.hGlobal;
} }
if(This->doc_navigate) { if(This->doc_navigate) {
......
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