applied SF patch #817328 to correct PMRelease calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,7 +109,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
@@ -138,7 +138,7 @@ wxPrinterDC::~wxPrinterDC(void)
|
|||||||
if ( m_ok )
|
if ( m_ok )
|
||||||
{
|
{
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
@@ -184,7 +184,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) )
|
|||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
@@ -206,7 +206,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) )
|
|||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -109,7 +109,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
|
|||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
@@ -138,7 +138,7 @@ wxPrinterDC::~wxPrinterDC(void)
|
|||||||
if ( m_ok )
|
if ( m_ok )
|
||||||
{
|
{
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
@@ -184,7 +184,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) )
|
|||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
@@ -206,7 +206,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) )
|
|||||||
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
|
||||||
dialog.ShowModal();
|
dialog.ShowModal();
|
||||||
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
#if TARGET_CARBON && PM_USE_SESSION_APIS
|
||||||
PMRelease(&m_macPrintSessionPort) ;
|
PMRelease(m_macPrintSessionPort) ;
|
||||||
#else
|
#else
|
||||||
UMAPrClose(NULL) ;
|
UMAPrClose(NULL) ;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user