if (!settings->ServerHostname)
{
WLog_ERR(TAG, "error: server hostname was not specified with /v:<server>[:port]");
- [NSApp terminate:nil];
- return -1;
+ return FALSE;
}
settings->OsMajorType = OSMAJORTYPE_MACINTOSH;
[window setTitle:winTitle];
}
+ else
+ {
+ [NSApp terminate:self];
+ }
}
- (void)applicationWillBecomeActive:(NSNotification *)notification
[mrdpView releaseResources];
_singleDelegate = nil;
NSLog(@"Stopped.\n");
+ [NSApp terminate:self];
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender
#import <Cocoa/Cocoa.h>
-int main(int argc, char *argv[])
+int main(int argc, const char *argv[])
{
return NSApplicationMain(argc, argv);
}
#import <Cocoa/Cocoa.h>
-int main(int argc, char *argv[])
+int main(int argc, const char *argv[])
{
- return NSApplicationMain(argc, (const char **)argv);
+ return NSApplicationMain(argc, argv);
}
{
mfContext *mfc = (mfContext *)context;
+ freerdp_abort_connect(context->instance);
if (mfc->thread)
{
SetEvent(mfc->stopEvent);
context->instance->LogonErrorInfo = mac_logon_error_info;
context->instance->settings = instance->settings;
settings = context->settings;
- settings->AsyncUpdate = TRUE;
settings->AsyncInput = TRUE;
return TRUE;
}