Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
64982107
Commit
64982107
authored
May 19, 2021
by
Huw Davies
Committed by
Alexandre Julliard
May 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Implement GetForm().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bb514159
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
provider.c
dlls/localspl/provider.c
+38
-2
No files found.
dlls/localspl/provider.c
View file @
64982107
...
...
@@ -2714,8 +2714,44 @@ static BOOL WINAPI fpDeleteForm( HANDLE printer, WCHAR *name )
static
BOOL
WINAPI
fpGetForm
(
HANDLE
printer
,
WCHAR
*
name
,
DWORD
level
,
BYTE
*
form
,
DWORD
size
,
DWORD
*
needed
)
{
FIXME
(
"(%p, %s, %d, %p, %d, %p): stub
\n
"
,
printer
,
debugstr_w
(
name
),
level
,
form
,
size
,
needed
);
return
FALSE
;
size_t
struct_size
=
form_struct_size
(
level
);
const
struct
builtin_form
*
builtin
=
NULL
;
WCHAR
*
strings
=
NULL
;
BYTE
*
base
=
form
;
DWORD
i
;
TRACE
(
"(%p, %s, %d, %p, %d, %p)
\n
"
,
printer
,
debugstr_w
(
name
),
level
,
form
,
size
,
needed
);
*
needed
=
0
;
if
(
!
struct_size
)
return
FALSE
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
builtin_forms
);
i
++
)
{
if
(
!
wcscmp
(
name
,
builtin_forms
[
i
].
name
))
{
builtin
=
builtin_forms
+
i
;
break
;
}
}
if
(
!
builtin
)
{
SetLastError
(
ERROR_INVALID_FORM_NAME
);
return
FALSE
;
}
*
needed
=
struct_size
;
if
(
*
needed
<
size
)
strings
=
(
WCHAR
*
)(
form
+
*
needed
);
fill_builtin_form_info
(
&
base
,
&
strings
,
builtin
,
level
,
size
,
needed
);
if
(
*
needed
>
size
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
return
TRUE
;
}
static
BOOL
WINAPI
fpSetForm
(
HANDLE
printer
,
WCHAR
*
name
,
DWORD
level
,
BYTE
*
form
)
...
...
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