mirror of
https://github.com/samba-team/samba.git
synced 2025-11-28 12:23:49 +03:00
r26563: Fix reg_diff_apply argument order.
This commit is contained in:
committed by
Stefan Metzmacher
parent
b07ca944ba
commit
cfffd0357e
@@ -432,8 +432,7 @@ static WERROR reg_diff_apply_del_all_values(void *_ctx, const char *key_name)
|
|||||||
/**
|
/**
|
||||||
* Apply diff to a registry context
|
* Apply diff to a registry context
|
||||||
*/
|
*/
|
||||||
_PUBLIC_ WERROR reg_diff_apply(const char *filename,
|
_PUBLIC_ WERROR reg_diff_apply(struct registry_context *ctx, const char *filename)
|
||||||
struct registry_context *ctx)
|
|
||||||
{
|
{
|
||||||
struct reg_diff_callbacks callbacks;
|
struct reg_diff_callbacks callbacks;
|
||||||
|
|
||||||
|
|||||||
@@ -36,8 +36,7 @@ struct reg_diff_callbacks {
|
|||||||
WERROR (*done) (void *callback_data);
|
WERROR (*done) (void *callback_data);
|
||||||
};
|
};
|
||||||
|
|
||||||
WERROR reg_diff_apply (const char *filename,
|
WERROR reg_diff_apply(struct registry_context *ctx, const char *filename);
|
||||||
struct registry_context *ctx);
|
|
||||||
|
|
||||||
WERROR reg_generate_diff(struct registry_context *ctx1,
|
WERROR reg_generate_diff(struct registry_context *ctx1,
|
||||||
struct registry_context *ctx2,
|
struct registry_context *ctx2,
|
||||||
|
|||||||
@@ -97,11 +97,7 @@ typedef struct registry_context {
|
|||||||
struct registry_key **key);
|
struct registry_key **key);
|
||||||
|
|
||||||
WERROR get_predefined_key(uint32_t hkey_id, struct registry_key **key);
|
WERROR get_predefined_key(uint32_t hkey_id, struct registry_key **key);
|
||||||
WERROR apply_patchfile(const char *filename)
|
WERROR apply_patchfile(const char *filename);
|
||||||
{
|
|
||||||
return reg_diff_apply(filename, $self);
|
|
||||||
}
|
|
||||||
|
|
||||||
WERROR mount_hive(struct hive_key *hive_key, uint32_t hkey_id,
|
WERROR mount_hive(struct hive_key *hive_key, uint32_t hkey_id,
|
||||||
const char **elements=NULL);
|
const char **elements=NULL);
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
poptFreeContext(pc);
|
poptFreeContext(pc);
|
||||||
|
|
||||||
reg_diff_apply(patch, h);
|
reg_diff_apply(h, patch);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user