Removed winpr_exit

As the cleanup functions are called by atexit a dedicated
cleanup call is no longer required.
This commit is contained in:
Armin Novak
2018-04-03 12:55:17 +02:00
parent e1b53a282f
commit d249335708
14 changed files with 46 additions and 57 deletions

View File

@@ -50,7 +50,7 @@ int main(int argc, char* argv[])
context = freerdp_client_context_new(&clientEntryPoints);
if (!context)
return winpr_exit(1);
return 1;
settings = context->settings;
xfc = (xfContext*) context;
@@ -65,7 +65,7 @@ int main(int argc, char* argv[])
xf_list_monitors(xfc);
freerdp_client_context_free(context);
return winpr_exit(0);
return 0;
}
freerdp_client_start(context);
@@ -79,5 +79,5 @@ int main(int argc, char* argv[])
freerdp_client_context_free(context);
return winpr_exit(xf_exit_code_from_disconnect_reason(dwExitCode));
return xf_exit_code_from_disconnect_reason(dwExitCode);
}