Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8de0a9dc
Commit
8de0a9dc
authored
Jul 14, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use nameless unions/structs.
parent
102a9bd9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
+6
-13
dialog.c
dlls/msi/dialog.c
+3
-4
msi.c
dlls/msi/msi.c
+1
-3
package.c
dlls/msi/package.c
+2
-4
suminfo.c
dlls/msi/suminfo.c
+0
-2
No files found.
dlls/msi/dialog.c
View file @
8de0a9dc
...
...
@@ -20,7 +20,6 @@
*/
#define COBJMACROS
#define NONAMELESSUNION
#include <stdarg.h>
...
...
@@ -2439,9 +2438,9 @@ static void seltree_add_child_features( MSIPACKAGE *package, HWND hwnd, const WC
memset
(
&
tvis
,
0
,
sizeof
tvis
);
tvis
.
hParent
=
hParent
;
tvis
.
hInsertAfter
=
TVI_LAST
;
tvis
.
u
.
item
.
mask
=
TVIF_TEXT
|
TVIF_PARAM
;
tvis
.
u
.
item
.
pszText
=
feature
->
Title
;
tvis
.
u
.
item
.
lParam
=
(
LPARAM
)
feature
;
tvis
.
item
.
mask
=
TVIF_TEXT
|
TVIF_PARAM
;
tvis
.
item
.
pszText
=
feature
->
Title
;
tvis
.
item
.
lParam
=
(
LPARAM
)
feature
;
hitem
=
(
HTREEITEM
)
SendMessageW
(
hwnd
,
TVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
tvis
);
if
(
!
hitem
)
...
...
dlls/msi/msi.c
View file @
8de0a9dc
...
...
@@ -21,8 +21,6 @@
#include <stdarg.h>
#define COBJMACROS
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
...
...
@@ -2548,7 +2546,7 @@ HRESULT WINAPI MsiGetFileSignatureInformationW( const WCHAR *path, DWORD flags,
data
.
dwUIChoice
=
WTD_UI_NONE
;
data
.
fdwRevocationChecks
=
WTD_REVOKE_WHOLECHAIN
;
data
.
dwUnionChoice
=
WTD_CHOICE_FILE
;
data
.
u
.
pFile
=
&
info
;
data
.
pFile
=
&
info
;
data
.
dwStateAction
=
WTD_STATEACTION_VERIFY
;
data
.
dwUIContext
=
WTD_UICONTEXT_INSTALL
;
...
...
dlls/msi/package.c
View file @
8de0a9dc
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define COBJMACROS
#include <stdarg.h>
...
...
@@ -776,7 +774,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
GetNativeSystemInfo
(
&
sys_info
);
len
=
swprintf
(
bufstr
,
ARRAY_SIZE
(
bufstr
),
L"%d"
,
sys_info
.
wProcessorLevel
);
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
);
PathAddBackslashW
(
pth
);
...
...
@@ -792,7 +790,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
PathAddBackslashW
(
pth
);
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"Msix64"
,
bufstr
,
-
1
);
...
...
dlls/msi/suminfo.c
View file @
8de0a9dc
...
...
@@ -21,8 +21,6 @@
#include <stdarg.h>
#define COBJMACROS
#define NONAMELESSUNION
#include "stdio.h"
#include "windef.h"
#include "winbase.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment