Commit b9a8437d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shell32: Use nameless unions.

parent 1610c80a
EXTRADEFS = -D_SHELL32_ -DWINE_NO_NAMELESS_EXTENSION EXTRADEFS = -D_SHELL32_
MODULE = shell32.dll MODULE = shell32.dll
IMPORTLIB = shell32 IMPORTLIB = shell32
IMPORTS = uuid shlwapi user32 gdi32 advapi32 IMPORTS = uuid shlwapi user32 gdi32 advapi32
......
...@@ -718,7 +718,7 @@ HRESULT WINAPI SHPropStgCreate(IPropertySetStorage *psstg, REFFMTID fmtid, ...@@ -718,7 +718,7 @@ HRESULT WINAPI SHPropStgCreate(IPropertySetStorage *psstg, REFFMTID fmtid,
if(FAILED(hres) || ret.vt!=VT_I2) if(FAILED(hres) || ret.vt!=VT_I2)
*puCodePage = 0; *puCodePage = 0;
else else
*puCodePage = ret.u.iVal; *puCodePage = ret.iVal;
} }
} }
...@@ -751,7 +751,7 @@ HRESULT WINAPI SHPropStgReadMultiple(IPropertyStorage *pps, UINT uCodePage, ...@@ -751,7 +751,7 @@ HRESULT WINAPI SHPropStgReadMultiple(IPropertyStorage *pps, UINT uCodePage,
if(FAILED(hres) || ret.vt!=VT_I2) if(FAILED(hres) || ret.vt!=VT_I2)
return S_OK; return S_OK;
uCodePage = ret.u.iVal; uCodePage = ret.iVal;
} }
hres = IPropertyStorage_Stat(pps, &stat); hres = IPropertyStorage_Stat(pps, &stat);
...@@ -789,10 +789,10 @@ HRESULT WINAPI SHPropStgWriteMultiple(IPropertyStorage *pps, UINT *uCodePage, ...@@ -789,10 +789,10 @@ HRESULT WINAPI SHPropStgWriteMultiple(IPropertyStorage *pps, UINT *uCodePage,
hres = IPropertyStorage_ReadMultiple(pps, 1, &prop, &ret); hres = IPropertyStorage_ReadMultiple(pps, 1, &prop, &ret);
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
if(ret.vt!=VT_I2 || !ret.u.iVal) if(ret.vt!=VT_I2 || !ret.iVal)
return E_FAIL; return E_FAIL;
codepage = ret.u.iVal; codepage = ret.iVal;
if(uCodePage) if(uCodePage)
*uCodePage = codepage; *uCodePage = codepage;
} }
......
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