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
0724f94f
Commit
0724f94f
authored
Jul 18, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Use nameless unions/structs.
parent
0682b43b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
info.c
dlls/winspool.drv/info.c
+13
-16
No files found.
dlls/winspool.drv/info.c
View file @
0724f94f
...
...
@@ -30,9 +30,6 @@
#include <ctype.h>
#include <stddef.h>
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
...
...
@@ -1898,17 +1895,17 @@ BOOL WINAPI IsValidDevmodeW(PDEVMODEW dm, SIZE_T size)
}
map
[]
=
{
#define F_SIZE(field) FIELD_OFFSET(DEVMODEW, field) + sizeof(dm->field)
{
DM_ORIENTATION
,
F_SIZE
(
u1
.
s1
.
dmOrientation
)
},
{
DM_PAPERSIZE
,
F_SIZE
(
u1
.
s1
.
dmPaperSize
)
},
{
DM_PAPERLENGTH
,
F_SIZE
(
u1
.
s1
.
dmPaperLength
)
},
{
DM_PAPERWIDTH
,
F_SIZE
(
u1
.
s1
.
dmPaperWidth
)
},
{
DM_SCALE
,
F_SIZE
(
u1
.
s1
.
dmScale
)
},
{
DM_COPIES
,
F_SIZE
(
u1
.
s1
.
dmCopies
)
},
{
DM_DEFAULTSOURCE
,
F_SIZE
(
u1
.
s1
.
dmDefaultSource
)
},
{
DM_PRINTQUALITY
,
F_SIZE
(
u1
.
s1
.
dmPrintQuality
)
},
{
DM_POSITION
,
F_SIZE
(
u1
.
s2
.
dmPosition
)
},
{
DM_DISPLAYORIENTATION
,
F_SIZE
(
u1
.
s2
.
dmDisplayOrientation
)
},
{
DM_DISPLAYFIXEDOUTPUT
,
F_SIZE
(
u1
.
s2
.
dmDisplayFixedOutput
)
},
{
DM_ORIENTATION
,
F_SIZE
(
dmOrientation
)
},
{
DM_PAPERSIZE
,
F_SIZE
(
dmPaperSize
)
},
{
DM_PAPERLENGTH
,
F_SIZE
(
dmPaperLength
)
},
{
DM_PAPERWIDTH
,
F_SIZE
(
dmPaperWidth
)
},
{
DM_SCALE
,
F_SIZE
(
dmScale
)
},
{
DM_COPIES
,
F_SIZE
(
dmCopies
)
},
{
DM_DEFAULTSOURCE
,
F_SIZE
(
dmDefaultSource
)
},
{
DM_PRINTQUALITY
,
F_SIZE
(
dmPrintQuality
)
},
{
DM_POSITION
,
F_SIZE
(
dmPosition
)
},
{
DM_DISPLAYORIENTATION
,
F_SIZE
(
dmDisplayOrientation
)
},
{
DM_DISPLAYFIXEDOUTPUT
,
F_SIZE
(
dmDisplayFixedOutput
)
},
{
DM_COLOR
,
F_SIZE
(
dmColor
)
},
{
DM_DUPLEX
,
F_SIZE
(
dmDuplex
)
},
{
DM_YRESOLUTION
,
F_SIZE
(
dmYResolution
)
},
...
...
@@ -1919,8 +1916,8 @@ BOOL WINAPI IsValidDevmodeW(PDEVMODEW dm, SIZE_T size)
{
DM_BITSPERPEL
,
F_SIZE
(
dmBitsPerPel
)
},
{
DM_PELSWIDTH
,
F_SIZE
(
dmPelsWidth
)
},
{
DM_PELSHEIGHT
,
F_SIZE
(
dmPelsHeight
)
},
{
DM_DISPLAYFLAGS
,
F_SIZE
(
u2
.
dmDisplayFlags
)
},
{
DM_NUP
,
F_SIZE
(
u2
.
dmNup
)
},
{
DM_DISPLAYFLAGS
,
F_SIZE
(
dmDisplayFlags
)
},
{
DM_NUP
,
F_SIZE
(
dmNup
)
},
{
DM_DISPLAYFREQUENCY
,
F_SIZE
(
dmDisplayFrequency
)
},
{
DM_ICMMETHOD
,
F_SIZE
(
dmICMMethod
)
},
{
DM_ICMINTENT
,
F_SIZE
(
dmICMIntent
)
},
...
...
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