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
72ee10b5
Commit
72ee10b5
authored
Jul 17, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Use nameless unions/structs.
parent
fe8d66bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
ui.c
dlls/sane.ds/ui.c
+6
-8
No files found.
dlls/sane.ds/ui.c
View file @
72ee10b5
...
...
@@ -22,8 +22,6 @@
#include <stdarg.h>
#include <stdio.h>
#define NONAMELESSUNION
#include "sane_i.h"
#include "winuser.h"
#include "winnls.h"
...
...
@@ -491,7 +489,7 @@ BOOL DoScannerUI(void)
{
struct
option_descriptor
opt
;
psp
[
page_count
].
u
.
pResource
=
create_options_page
(
hdc
,
&
index
,
psp
[
page_count
].
pResource
=
create_options_page
(
hdc
,
&
index
,
optcount
,
TRUE
);
opt
.
optno
=
index
;
SANE_CALL
(
option_get_descriptor
,
&
opt
);
...
...
@@ -501,7 +499,7 @@ BOOL DoScannerUI(void)
psp
[
page_count
].
pszTitle
=
wcsdup
(
opt
.
title
);
}
if
(
psp
[
page_count
].
u
.
pResource
)
if
(
psp
[
page_count
].
pResource
)
{
psp
[
page_count
].
dwSize
=
sizeof
(
PROPSHEETPAGEW
);
psp
[
page_count
].
dwFlags
=
PSP_DLGINDIRECT
|
PSP_USETITLE
;
...
...
@@ -526,18 +524,18 @@ BOOL DoScannerUI(void)
psh
.
dwFlags
=
PSH_PROPSHEETPAGE
|
PSH_PROPTITLE
|
PSH_USECALLBACK
;
psh
.
hwndParent
=
activeDS
.
hwndOwner
;
psh
.
hInstance
=
SANE_instance
;
psh
.
u
.
pszIcon
=
0
;
psh
.
pszIcon
=
0
;
psh
.
pszCaption
=
szCaption
;
psh
.
nPages
=
page_count
;
psh
.
u2
.
nStartPage
=
0
;
psh
.
u3
.
ppsp
=
(
LPCPROPSHEETPAGEW
)
psp
;
psh
.
nStartPage
=
0
;
psh
.
ppsp
=
(
LPCPROPSHEETPAGEW
)
psp
;
psh
.
pfnCallback
=
PropSheetProc
;
psrc
=
PropertySheetW
(
&
psh
);
for
(
index
=
0
;
index
<
page_count
;
index
++
)
{
free
((
LPBYTE
)
psp
[
index
].
u
.
pResource
);
free
((
LPBYTE
)
psp
[
index
].
pResource
);
free
((
LPBYTE
)
psp
[
index
].
pszTitle
);
}
free
(
szCaption
);
...
...
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