]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/mimetmac.cpp
Copy about.htm
[wxWidgets.git] / src / mac / carbon / mimetmac.cpp
index 61f059e992760cc20387adab8429858710bb1a78..9c0f3be67b51b5b10335ddf78d3918fe9a409a0b 100644 (file)
@@ -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));