X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7780bb4cc20c67627e1575fc5e86368bb71caf7..73ed39b580977913998bbb988e52e474fe9835ae:/src/mac/carbon/mimetmac.cpp diff --git a/src/mac/carbon/mimetmac.cpp b/src/mac/carbon/mimetmac.cpp index 61f059e992..9c0f3be67b 100644 --- a/src/mac/carbon/mimetmac.cpp +++ b/src/mac/carbon/mimetmac.cpp @@ -1173,7 +1173,7 @@ public: { } operator CFTypeRef() const - {return (CFTypeRef) (m_Holder.operator CFStringRef()); } //don't ask + {return (CFTypeRef) ((CFStringRef) m_Holder); } bool IsOk() { return ((CFTypeRef)(*this)) != NULL; } @@ -1722,7 +1722,7 @@ wxFileType* wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo) entry.fileCreator = creator; entry.postCreator = 0; entry.flags = kICMapDataForkBit; //TODO: Maybe resource is valid by default too? - entry.extension = psExtension; + PLstrcpy( entry.extension , psExtension ) ; memcpy(entry.creatorAppName, psCreatorName, sizeof(Str255)); memcpy(entry.postAppName, psPostCreatorName, sizeof(Str255)); memcpy(entry.MIMEType, psMimeType, sizeof(Str255));