Ignore:
Timestamp:
May 24, 2009, 7:51:24 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 branch to 3.3.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/registry/reg_eventlog.c

    r206 r223  
    3636        char *evtlogpath = NULL;
    3737        char *evtfilepath = NULL;
    38         REGSUBKEY_CTR *subkeys;
     38        struct regsubkey_ctr *subkeys;
    3939        REGVAL_CTR *values;
    4040        uint32 uiMaxSize;
     
    4343        UNISTR2 data;
    4444        TALLOC_CTX *ctx = talloc_tos();
     45        WERROR werr;
    4546
    4647        while (elogs && *elogs) {
    47                 if (!(subkeys = TALLOC_ZERO_P(ctx, REGSUBKEY_CTR ) ) ) {
     48                werr = regsubkey_ctr_init(ctx, &subkeys);
     49                if (!W_ERROR_IS_OK(werr)) {
    4850                        DEBUG( 0, ( "talloc() failure!\n" ) );
    4951                        return False;
     
    7173                       ( "Adding key of [%s] to path of [%s]\n", *elogs,
    7274                         evtlogpath ) );
    73                 if (!(subkeys = TALLOC_ZERO_P(ctx, REGSUBKEY_CTR))) {
     75                werr = regsubkey_ctr_init(ctx, &subkeys);
     76                if (!W_ERROR_IS_OK(werr)) {
    7477                        DEBUG( 0, ( "talloc() failure!\n" ) );
    7578                        return False;
     
    198201        char **wrklist, **wp;
    199202        char *evtlogpath = NULL;
    200         REGSUBKEY_CTR *subkeys;
     203        struct regsubkey_ctr *subkeys;
    201204        REGVAL_CTR *values;
    202205        REGISTRY_VALUE *rval;
     
    208211        int numsources;
    209212        TALLOC_CTX *ctx = talloc_tos();
     213        WERROR werr;
    210214
    211215        if (!elogs) {
     
    316320        TALLOC_FREE(wrklist);   /*  */
    317321
    318         if ( !( subkeys = TALLOC_ZERO_P(ctx, REGSUBKEY_CTR ) ) ) {
     322        werr = regsubkey_ctr_init(ctx, &subkeys);
     323        if (!W_ERROR_IS_OK(werr)) {
    319324                DEBUG( 0, ( "talloc() failure!\n" ) );
    320325                return False;
     
    343348        /* now allocate room for the source's subkeys */
    344349
    345         if ( !( subkeys = TALLOC_ZERO_P(ctx, REGSUBKEY_CTR ) ) ) {
     350        werr = regsubkey_ctr_init(ctx, &subkeys);
     351        if (!W_ERROR_IS_OK(werr)) {
    346352                DEBUG( 0, ( "talloc() failure!\n" ) );
    347353                return False;
Note: See TracChangeset for help on using the changeset viewer.