diff options
author | Sravan Kumar Lakkimsetti | 2021-04-29 09:33:35 +0000 |
---|---|---|
committer | Sravan Kumar Lakkimsetti | 2021-04-29 09:37:54 +0000 |
commit | bd08b85fa021def26e1555bbce615e82db3c3e76 (patch) | |
tree | 4606e4ebf38369f7ecfbb7c49355ef9339e1e233 | |
parent | 49f17862d789ecaf98b712fd509f1a157d4fdb58 (diff) | |
download | rt.equinox.framework-bd08b85fa021def26e1555bbce615e82db3c3e76.tar.gz rt.equinox.framework-bd08b85fa021def26e1555bbce615e82db3c3e76.tar.xz rt.equinox.framework-bd08b85fa021def26e1555bbce615e82db3c3e76.zip |
Bug 573235 - Error in launching Mac arm64/aarch64 build
Change-Id: Ibf2a53938870b5d54e55056f0b4914d506e92b4f
Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/179970
-rw-r--r-- | features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c b/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c index ff7944f3e..d13eebc0c 100644 --- a/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c +++ b/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2015 IBM Corporation and others. + * Copyright (c) 2006, 2021 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -62,13 +62,14 @@ void displayMessage(char *title, char *message) free(buffer); inDescription= CFStringCreateWithCString(kCFAllocatorDefault, pos+2, kCFStringEncodingUTF8); } else { - inError= CFStringCreateWithCString(kCFAllocatorDefault, message, kCFStringEncodingUTF8); + inError= CFStringCreateWithCString(kCFAllocatorDefault, title, kCFStringEncodingUTF8); + inDescription= CFStringCreateWithCString(kCFAllocatorDefault, message, kCFStringEncodingUTF8); } NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; NSAlert *alert = [[NSAlert alloc] init]; - [alert setMessageText:(NSString*)(inDescription != nil ? inError : nil)]; - [alert setInformativeText:(NSString*)(inDescription != nil ? inDescription : inError)]; + [alert setMessageText:(NSString*)inError]; + [alert setInformativeText:(NSString*)inDescription]; [alert addButtonWithTitle:@"Ok"]; [[alert window] setTitle: [NSString stringWithUTF8String: title]]; [alert setAlertStyle: NSAlertStyleCritical]; |