Changeset 223 for branches/samba-3.3.x/source/lib/netapi/user.c
- Timestamp:
- May 24, 2009, 7:51:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/netapi/user.c
r206 r223 1511 1511 NTSTATUS status = NT_STATUS_OK; 1512 1512 WERROR werr; 1513 WERROR werr_tmp; 1514 1515 *r->out.entries_read = 0; 1513 1516 1514 1517 ZERO_STRUCT(connect_handle); … … 1555 1558 &returned_size, 1556 1559 &info); 1557 if (!NT_STATUS_IS_OK(status)) { 1558 werr = ntstatus_to_werror(status); 1559 goto done; 1560 } 1561 1562 werr = convert_samr_dispinfo_to_NET_DISPLAY(ctx, &info, 1563 r->in.level, 1564 r->out.entries_read, 1565 r->out.buffer); 1560 werr = ntstatus_to_werror(status); 1561 if (NT_STATUS_IS_ERR(status)) { 1562 goto done; 1563 } 1564 1565 werr_tmp = convert_samr_dispinfo_to_NET_DISPLAY(ctx, &info, 1566 r->in.level, 1567 r->out.entries_read, 1568 r->out.buffer); 1569 if (!W_ERROR_IS_OK(werr_tmp)) { 1570 werr = werr_tmp; 1571 } 1566 1572 done: 1567 1573 if (!cli) { … … 2850 2856 *r->out.buffer = NULL; 2851 2857 *r->out.entries_read = 0; 2858 *r->out.total_entries = 0; 2852 2859 2853 2860 switch (r->in.level) { … … 2944 2951 } 2945 2952 2946 if (r->out.entries_read) { 2947 *r->out.entries_read = entries_read; 2948 } 2949 if (r->out.total_entries) { 2950 *r->out.total_entries = entries_read; 2951 } 2953 *r->out.entries_read = entries_read; 2954 *r->out.total_entries = entries_read; 2952 2955 2953 2956 done: … … 3298 3301 *r->out.buffer = NULL; 3299 3302 *r->out.entries_read = 0; 3303 *r->out.total_entries = 0; 3300 3304 3301 3305 switch (r->in.level) { … … 3459 3463 } 3460 3464 3461 if (r->out.entries_read) { 3462 *r->out.entries_read = entries_read; 3463 } 3464 if (r->out.total_entries) { 3465 *r->out.total_entries = entries_read; 3466 } 3465 *r->out.entries_read = entries_read; 3466 *r->out.total_entries = entries_read; 3467 3467 3468 3468 done:
Note:
See TracChangeset
for help on using the changeset viewer.