mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Removed winpr_exit
As the cleanup functions are called by atexit a dedicated cleanup call is no longer required.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user