Commit 8de0a9dc authored by Alexandre Julliard's avatar Alexandre Julliard

msi: Use nameless unions/structs.

parent 102a9bd9
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
*/ */
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION
#include <stdarg.h> #include <stdarg.h>
...@@ -2439,9 +2438,9 @@ static void seltree_add_child_features( MSIPACKAGE *package, HWND hwnd, const WC ...@@ -2439,9 +2438,9 @@ static void seltree_add_child_features( MSIPACKAGE *package, HWND hwnd, const WC
memset( &tvis, 0, sizeof tvis ); memset( &tvis, 0, sizeof tvis );
tvis.hParent = hParent; tvis.hParent = hParent;
tvis.hInsertAfter = TVI_LAST; tvis.hInsertAfter = TVI_LAST;
tvis.u.item.mask = TVIF_TEXT | TVIF_PARAM; tvis.item.mask = TVIF_TEXT | TVIF_PARAM;
tvis.u.item.pszText = feature->Title; tvis.item.pszText = feature->Title;
tvis.u.item.lParam = (LPARAM) feature; tvis.item.lParam = (LPARAM) feature;
hitem = (HTREEITEM) SendMessageW( hwnd, TVM_INSERTITEMW, 0, (LPARAM) &tvis ); hitem = (HTREEITEM) SendMessageW( hwnd, TVM_INSERTITEMW, 0, (LPARAM) &tvis );
if (!hitem) if (!hitem)
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include <stdarg.h> #include <stdarg.h>
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winreg.h" #include "winreg.h"
...@@ -2548,7 +2546,7 @@ HRESULT WINAPI MsiGetFileSignatureInformationW( const WCHAR *path, DWORD flags, ...@@ -2548,7 +2546,7 @@ HRESULT WINAPI MsiGetFileSignatureInformationW( const WCHAR *path, DWORD flags,
data.dwUIChoice = WTD_UI_NONE; data.dwUIChoice = WTD_UI_NONE;
data.fdwRevocationChecks = WTD_REVOKE_WHOLECHAIN; data.fdwRevocationChecks = WTD_REVOKE_WHOLECHAIN;
data.dwUnionChoice = WTD_CHOICE_FILE; data.dwUnionChoice = WTD_CHOICE_FILE;
data.u.pFile = &info; data.pFile = &info;
data.dwStateAction = WTD_STATEACTION_VERIFY; data.dwStateAction = WTD_STATEACTION_VERIFY;
data.dwUIContext = WTD_UICONTEXT_INSTALL; data.dwUIContext = WTD_UICONTEXT_INSTALL;
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,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
#define NONAMELESSSTRUCT
#define COBJMACROS #define COBJMACROS
#include <stdarg.h> #include <stdarg.h>
...@@ -776,7 +774,7 @@ static VOID set_installer_properties(MSIPACKAGE *package) ...@@ -776,7 +774,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
GetNativeSystemInfo( &sys_info ); GetNativeSystemInfo( &sys_info );
len = swprintf( bufstr, ARRAY_SIZE(bufstr), L"%d", sys_info.wProcessorLevel ); len = swprintf( bufstr, ARRAY_SIZE(bufstr), L"%d", sys_info.wProcessorLevel );
msi_set_property( package->db, L"Intel", bufstr, len ); msi_set_property( package->db, L"Intel", bufstr, len );
if (sys_info.u.s.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL) if (sys_info.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL)
{ {
GetSystemDirectoryW( pth, MAX_PATH ); GetSystemDirectoryW( pth, MAX_PATH );
PathAddBackslashW( pth ); PathAddBackslashW( pth );
...@@ -792,7 +790,7 @@ static VOID set_installer_properties(MSIPACKAGE *package) ...@@ -792,7 +790,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
PathAddBackslashW( pth ); PathAddBackslashW( pth );
msi_set_property( package->db, L"CommonFilesFolder", pth, -1 ); msi_set_property( package->db, L"CommonFilesFolder", pth, -1 );
} }
else if (sys_info.u.s.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64) else if (sys_info.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
{ {
msi_set_property( package->db, L"MsiAMD64", bufstr, -1 ); msi_set_property( package->db, L"MsiAMD64", bufstr, -1 );
msi_set_property( package->db, L"Msix64", bufstr, -1 ); msi_set_property( package->db, L"Msix64", bufstr, -1 );
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include <stdarg.h> #include <stdarg.h>
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION
#include "stdio.h" #include "stdio.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
......
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