enum winreg_Type type = REG_NONE;
uint32_t value_len = 0;
uint32_t data_size = 0;
- WERROR result = WERR_OK;
NTSTATUS status;
DATA_BLOB blob;
NULL,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
blob.data,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
{
struct winreg_String wvalue;
enum winreg_Type type = REG_NONE;
- WERROR result = WERR_OK;
uint32_t value_len = 0;
uint32_t data_size = 0;
NTSTATUS status;
NULL,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
blob.data,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
{
struct winreg_String wvalue;
enum winreg_Type type = REG_NONE;
- WERROR result = WERR_OK;
uint32_t value_len = 0;
uint32_t data_size = 0;
NTSTATUS status;
NULL,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
blob.data,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
{
struct winreg_String wvalue;
enum winreg_Type type = REG_NONE;
- WERROR result = WERR_OK;
uint32_t value_len = 0;
uint32_t data_size = 0;
NTSTATUS status;
NULL,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
blob.data,
&data_size,
&value_len,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
struct security_descriptor **data,
WERROR *pwerr)
{
- WERROR result = WERR_OK;
NTSTATUS status;
DATA_BLOB blob;
key_handle,
value,
&blob,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
return status;
}
{
struct winreg_String wvalue;
DATA_BLOB blob;
- WERROR result = WERR_OK;
NTSTATUS status;
ZERO_STRUCT(wvalue);
REG_DWORD,
blob.data,
blob.length,
- &result);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
- }
+ pwerr);
return status;
}
{
struct winreg_String wvalue = { 0, };
DATA_BLOB blob;
- WERROR result = WERR_OK;
NTSTATUS status;
wvalue.name = value;
REG_SZ,
blob.data,
blob.length,
- &result);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
- }
+ pwerr);
return status;
}
{
struct winreg_String wvalue = { 0, };
DATA_BLOB blob;
- WERROR result = WERR_OK;
NTSTATUS status;
wvalue.name = value;
REG_EXPAND_SZ,
blob.data,
blob.length,
- &result);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
- }
+ pwerr);
return status;
}
{
struct winreg_String wvalue = { 0, };
DATA_BLOB blob;
- WERROR result = WERR_OK;
NTSTATUS status;
wvalue.name = value;
REG_MULTI_SZ,
blob.data,
blob.length,
- &result);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
- }
+ pwerr);
return status;
}
WERROR *pwerr)
{
struct winreg_String wvalue = { 0, };
- WERROR result = WERR_OK;
NTSTATUS status;
wvalue.name = value;
REG_BINARY,
data->data,
data->length,
- &result);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
- }
+ pwerr);
return status;
}
const char **a = NULL;
const char **p;
uint32_t i;
- WERROR result = WERR_OK;
NTSTATUS status;
status = dcerpc_winreg_query_multi_sz(mem_ctx,
key_handle,
value,
&a,
- &result);
+ pwerr);
/* count the elements */
for (p = a, i = 0; p && *p; p++, i++);
NTTIME last_changed_time;
uint32_t secdescsize;
struct winreg_String classname;
- WERROR result = WERR_OK;
NTSTATUS status;
TALLOC_CTX *tmp_ctx;
&max_valbufsize,
&secdescsize,
&last_changed_time,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
goto error;
}
- if (!W_ERROR_IS_OK(result)) {
- *pwerr = result;
+ if (!W_ERROR_IS_OK(*pwerr)) {
goto error;
}
&name_buf,
&class_buf,
&modtime,
- &result);
+ pwerr);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(5, ("dcerpc_winreg_enum_keys: Could not enumerate keys: %s\n",
nt_errstr(status)));
goto error;
}
- if (W_ERROR_EQUAL(result, WERR_NO_MORE_ITEMS) ) {
+ if (W_ERROR_EQUAL(*pwerr, WERR_NO_MORE_ITEMS)) {
*pwerr = WERR_OK;
break;
}
- if (!W_ERROR_IS_OK(result)) {
+ if (!W_ERROR_IS_OK(*pwerr)) {
DEBUG(5, ("dcerpc_winreg_enum_keys: Could not enumerate keys: %s\n",
- win_errstr(result)));
- *pwerr = result;
+ win_errstr(*pwerr)));
goto error;
}