Kaydet (Commit) bde00816 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS os2port02 (1.6.40); FILE MERGED

2007/10/04 19:45:58 ydario 1.6.40.1: Issue number: i82034
Submitted by: ydario
Reviewed by:  ydario
Commit of changes for OS/2 CWS source code integration.
üst 986f5a7f
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: zipexcptn.cxx,v $ * $RCSfile: zipexcptn.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: vg $ $Date: 2007-03-26 13:48:35 $ * last change: $Author: hr $ $Date: 2007-11-02 13:11:26 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -97,8 +97,10 @@ Win32Exception::Win32Exception(int Error) : ...@@ -97,8 +97,10 @@ Win32Exception::Win32Exception(int Error) :
*/ */
Win32Exception::~Win32Exception() throw() Win32Exception::~Win32Exception() throw()
{ {
#ifndef OS2
if (m_MsgBuff) if (m_MsgBuff)
LocalFree(m_MsgBuff); LocalFree(m_MsgBuff);
#endif
} }
//------------------------------------------ //------------------------------------------
...@@ -106,6 +108,9 @@ Win32Exception::~Win32Exception() throw() ...@@ -106,6 +108,9 @@ Win32Exception::~Win32Exception() throw()
*/ */
const char* Win32Exception::what() const throw() const char* Win32Exception::what() const throw()
{ {
#ifdef OS2
return "Win32Exception!";
#else
FormatMessage( FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_FROM_SYSTEM |
...@@ -118,6 +123,7 @@ const char* Win32Exception::what() const throw() ...@@ -118,6 +123,7 @@ const char* Win32Exception::what() const throw()
NULL); NULL);
return reinterpret_cast<char*>(m_MsgBuff); return reinterpret_cast<char*>(m_MsgBuff);
#endif
} }
//------------------------------------------ //------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment