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:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
module spool
|
||||
test PRINTER_DRIVER_INFO_LEVEL_6
|
||||
|
||||
struct BUFFER5 {
|
||||
uint32 buf_len;
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user