diff options
author | Günther Deschner <gd@samba.org> | 2009-02-08 19:19:57 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-09 10:42:33 +0100 |
commit | 9ef58a91962728c48df85c09ddabacfe9ebe2f21 (patch) | |
tree | c0a180dfc9d2cc9a6dca43f6067611fd7acc4ef0 /source3/printing | |
parent | c7d572a76f6269b9f6edea553bcb17d270a69500 (diff) | |
download | samba-9ef58a91962728c48df85c09ddabacfe9ebe2f21.tar.gz samba-9ef58a91962728c48df85c09ddabacfe9ebe2f21.tar.bz2 samba-9ef58a91962728c48df85c09ddabacfe9ebe2f21.zip |
s3-spoolss: use pidl for _spoolss_SetForm.
Guenther
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 70c5864535..97e7180cd9 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -986,28 +986,26 @@ bool delete_a_form(nt_forms_struct **list, UNISTR2 *del_name, int *count, WERROR Update a form struct. ****************************************************************************/ -void update_a_form(nt_forms_struct **list, const FORM *form, int count) +void update_a_form(nt_forms_struct **list, struct spoolss_AddFormInfo1 *form, int count) { int n=0; - fstring form_name; - unistr2_to_ascii(form_name, &(form->name), sizeof(form_name)); - DEBUG(106, ("[%s]\n", form_name)); + DEBUG(106, ("[%s]\n", form->form_name)); for (n=0; n<count; n++) { DEBUGADD(106, ("n [%d]:[%s]\n", n, (*list)[n].name)); - if (!strncmp((*list)[n].name, form_name, strlen(form_name))) + if (!strncmp((*list)[n].name, form->form_name, strlen(form->form_name))) break; } if (n==count) return; - (*list)[n].flag=form->flags; - (*list)[n].width=form->size_x; - (*list)[n].length=form->size_y; - (*list)[n].left=form->left; - (*list)[n].top=form->top; - (*list)[n].right=form->right; - (*list)[n].bottom=form->bottom; + (*list)[n].flag = form->flags; + (*list)[n].width = form->size.width; + (*list)[n].length = form->size.height; + (*list)[n].left = form->area.left; + (*list)[n].top = form->area.top; + (*list)[n].right = form->area.right; + (*list)[n].bottom = form->area.bottom; } /**************************************************************************** |