1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-09 17:49:29 +03:00

minor parse updates

This commit is contained in:
Andrew Tridgell
-
parent 87c4d46abe
commit 2e0a39204a
3 changed files with 7 additions and 8 deletions

View File

@ -311,9 +311,9 @@ BOOL io_pointer(char *desc, prs_struct *ps, int depth, void **p, unsigned flags)
if (!(flags & PARSE_SCALARS)) return True;
v = (*p) ? 1 : 0;
v = (*p) ? 0xdeadbeef : 0;
if (!io_uint32(desc, ps, depth, &v, flags)) return False;
*p = (void *) (v ? 1 : 0);
*p = (void *) (v ? 0xdeadbeef : 0);
return True;
}

View File

@ -1,5 +1,4 @@
module spool
test PRINTER_DRIVER_INFO_LEVEL_6
struct BUFFER5 {
uint32 buf_len;

View File

@ -41,7 +41,9 @@ struct CONN_INFO_1 {
struct CONN_ENUM_CTR {
uint32 level;
uint32 level2;
uint32 num_entries;
uint32 num_entries2;
union *info[level] {
case 0 CONN_INFO_0 info0[num_entries];
case 1 CONN_INFO_1 info1[num_entries];
@ -50,11 +52,9 @@ struct CONN_ENUM_CTR {
struct SRV_R_NET_CONN_ENUM {
.trailer;
uint32 level;
CONN_ENUM_CTR ctr;
ENUM_HND handle;
uint32 num_entries;
uint32 status;
ENUM_HND handle;
uint32 status2;
};
@ -140,8 +140,8 @@ struct SRV_R_NET_SHARE_ENUM {
}
.trailer;
uint32 count;
uint32 status1;
uint32 status2;
ENUM_HND handle;
uint32 status;
};