Changeset 223 for branches/samba-3.3.x/source/registry/reg_eventlog.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/registry/reg_eventlog.c
r206 r223 36 36 char *evtlogpath = NULL; 37 37 char *evtfilepath = NULL; 38 REGSUBKEY_CTR*subkeys;38 struct regsubkey_ctr *subkeys; 39 39 REGVAL_CTR *values; 40 40 uint32 uiMaxSize; … … 43 43 UNISTR2 data; 44 44 TALLOC_CTX *ctx = talloc_tos(); 45 WERROR werr; 45 46 46 47 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)) { 48 50 DEBUG( 0, ( "talloc() failure!\n" ) ); 49 51 return False; … … 71 73 ( "Adding key of [%s] to path of [%s]\n", *elogs, 72 74 evtlogpath ) ); 73 if (!(subkeys = TALLOC_ZERO_P(ctx, REGSUBKEY_CTR))) { 75 werr = regsubkey_ctr_init(ctx, &subkeys); 76 if (!W_ERROR_IS_OK(werr)) { 74 77 DEBUG( 0, ( "talloc() failure!\n" ) ); 75 78 return False; … … 198 201 char **wrklist, **wp; 199 202 char *evtlogpath = NULL; 200 REGSUBKEY_CTR*subkeys;203 struct regsubkey_ctr *subkeys; 201 204 REGVAL_CTR *values; 202 205 REGISTRY_VALUE *rval; … … 208 211 int numsources; 209 212 TALLOC_CTX *ctx = talloc_tos(); 213 WERROR werr; 210 214 211 215 if (!elogs) { … … 316 320 TALLOC_FREE(wrklist); /* */ 317 321 318 if ( !( subkeys = TALLOC_ZERO_P(ctx, REGSUBKEY_CTR ) ) ) { 322 werr = regsubkey_ctr_init(ctx, &subkeys); 323 if (!W_ERROR_IS_OK(werr)) { 319 324 DEBUG( 0, ( "talloc() failure!\n" ) ); 320 325 return False; … … 343 348 /* now allocate room for the source's subkeys */ 344 349 345 if ( !( subkeys = TALLOC_ZERO_P(ctx, REGSUBKEY_CTR ) ) ) { 350 werr = regsubkey_ctr_init(ctx, &subkeys); 351 if (!W_ERROR_IS_OK(werr)) { 346 352 DEBUG( 0, ( "talloc() failure!\n" ) ); 347 353 return False;
Note:
See TracChangeset
for help on using the changeset viewer.