'fix' for broken gcc version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1670,7 +1670,7 @@ wxFileType* wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo)
|
|||||||
ICGetMapEntry( (ICInstance) m_hIC, (Handle) m_hDatabase,
|
ICGetMapEntry( (ICInstance) m_hIC, (Handle) m_hDatabase,
|
||||||
pFileType->m_impl->m_lIndex, &entry);
|
pFileType->m_impl->m_lIndex, &entry);
|
||||||
|
|
||||||
entry.creatorAppName = psCreatorName;
|
memcpy(entry.creatorAppName, psCreatorName, sizeof(Str255));
|
||||||
entry.fileCreator = creator;
|
entry.fileCreator = creator;
|
||||||
|
|
||||||
status = ICSetMapEntry( (ICInstance) m_hIC, (Handle) m_hDatabase,
|
status = ICSetMapEntry( (ICInstance) m_hIC, (Handle) m_hDatabase,
|
||||||
@@ -1723,10 +1723,10 @@ wxFileType* wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo)
|
|||||||
entry.postCreator = 0;
|
entry.postCreator = 0;
|
||||||
entry.flags = kICMapDataForkBit; //TODO: Maybe resource is valid by default too?
|
entry.flags = kICMapDataForkBit; //TODO: Maybe resource is valid by default too?
|
||||||
entry.extension = psExtension;
|
entry.extension = psExtension;
|
||||||
entry.creatorAppName = psCreatorName;
|
memcpy(entry.creatorAppName, psCreatorName, sizeof(Str255));
|
||||||
entry.postAppName = psPostCreatorName;
|
memcpy(entry.postAppName, psPostCreatorName, sizeof(Str255));
|
||||||
entry.MIMEType = psMimeType;
|
memcpy(entry.MIMEType, psMimeType, sizeof(Str255));
|
||||||
entry.entryName = psDescription;
|
memcpy(entry.entryName, psDescription, sizeof(Str255));
|
||||||
|
|
||||||
status = ICAddMapEntry( (ICInstance) m_hIC, (Handle) m_hDatabase, &entry);
|
status = ICAddMapEntry( (ICInstance) m_hIC, (Handle) m_hDatabase, &entry);
|
||||||
|
|
||||||
@@ -1937,7 +1937,7 @@ wxMimeTypesManagerImpl::Unassociate(wxFileType *pFileType)
|
|||||||
|
|
||||||
#if defined(__DARWIN__)
|
#if defined(__DARWIN__)
|
||||||
if(!bInfoSuccess)
|
if(!bInfoSuccess)
|
||||||
return NULL;
|
return FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//this should be as easy as removing the entry from the database and then saving
|
//this should be as easy as removing the entry from the database and then saving
|
||||||
|
Reference in New Issue
Block a user