server/shadow: Fix incorrect handle of makecert_context_process.

Also fix another typo for makecert_context_set_output_file_name
This commit is contained in:
zihao.jiang 2015-06-29 01:39:09 +08:00
parent 20878e50fe
commit c7b598bc4d
1 changed files with 2 additions and 2 deletions

View File

@ -554,10 +554,10 @@ static BOOL shadow_server_init_certificate(rdpShadowServer* server)
if (!makecert)
goto out_fail;
if (makecert_context_process(makecert, makecert_argc, (char**) makecert_argv) != 1)
if (makecert_context_process(makecert, makecert_argc, (char**) makecert_argv) < 0)
goto out_fail;
if (!makecert_context_set_output_file_name(makecert, "shadow") != 1)
if (makecert_context_set_output_file_name(makecert, "shadow") != 1)
goto out_fail;
if (!PathFileExistsA(server->CertificateFile))