summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a9a03c4)
Check for error from init_rpc() in moonshot_install_id_card().
Also fix compile warnings.
- status = RegQueryValueEx (key, NULL, NULL, &value_type, exe_path, &length);
+ status = RegQueryValueEx (key, NULL, NULL, &value_type, (LPBYTE )exe_path, &length);
if (value_type != REG_SZ) {
*error = moonshot_error_new_with_status
if (value_type != REG_SZ) {
*error = moonshot_error_new_with_status
}
startup_info.cb = sizeof (startup_info);
}
startup_info.cb = sizeof (startup_info);
success = CreateProcess (exe_path,
NULL,
NULL,
success = CreateProcess (exe_path,
NULL,
NULL,
static void init_rpc (MoonshotError **error)
{
static volatile LONG binding_init_flag = 2;
static void init_rpc (MoonshotError **error)
{
static volatile LONG binding_init_flag = 2;
/* Hack to avoid requiring a moonshot_init() function. Windows does not
* provide any synchronisation primitives that can be statically init'ed,
/* Hack to avoid requiring a moonshot_init() function. Windows does not
* provide any synchronisation primitives that can be statically init'ed,
char **subject_alt_name_constraint_out,
MoonshotError **error)
{
char **subject_alt_name_constraint_out,
MoonshotError **error)
{
RpcAsyncCall call;
init_rpc (error);
RpcAsyncCall call;
init_rpc (error);
char **subject_alt_name_constraint_out,
MoonshotError **error)
{
char **subject_alt_name_constraint_out,
MoonshotError **error)
{
RpcAsyncCall call;
init_rpc (error);
RpcAsyncCall call;
init_rpc (error);
int success = FALSE;
init_rpc (error);
int success = FALSE;
init_rpc (error);
+ if (*error != NULL)
+ return FALSE;
if (user_name == NULL) user_name = "";
if (password == NULL) password = "";
if (user_name == NULL) user_name = "";
if (password == NULL) password = "";
RPC_GET_EXCEPTION_CODE ());
}
RPC_END_EXCEPT
RPC_GET_EXCEPTION_CODE ());
}
RPC_END_EXCEPT