}
length = 1023;
- 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
}
startup_info.cb = sizeof (startup_info);
-
success = CreateProcess (exe_path,
NULL,
NULL,
static void init_rpc (MoonshotError **error)
{
static volatile LONG binding_init_flag = 2;
- int status;
/* 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)
{
- int success;
+ int success = FALSE;
RpcAsyncCall call;
init_rpc (error);
char **subject_alt_name_constraint_out,
MoonshotError **error)
{
- int success;
+ int success = FALSE;
RpcAsyncCall call;
init_rpc (error);
int success = FALSE;
init_rpc (error);
+ if (*error != NULL)
+ return FALSE;
if (user_name == NULL) user_name = "";
if (password == NULL) password = "";
RPC_GET_EXCEPTION_CODE ());
}
RPC_END_EXCEPT
-
return success;
}