diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 12:11:26 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 12:11:26 +0000 |
commit | bde00816e24b14902ee005e61a9f1f83aafdbfd6 (patch) | |
tree | 1501c424681da32850af5a1993df0e01636c4ddd /shell | |
parent | 986f5a7f2a8f0a0ec90d503cf512a2561a3a3812 (diff) |
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.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/all/zipfile/zipexcptn.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/shell/source/all/zipfile/zipexcptn.cxx b/shell/source/all/zipfile/zipexcptn.cxx index 57211f8236d9..5affd3db2f73 100644 --- a/shell/source/all/zipfile/zipexcptn.cxx +++ b/shell/source/all/zipfile/zipexcptn.cxx @@ -4,9 +4,9 @@ * * $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 terms of GNU Lesser General Public License Version 2.1. @@ -97,8 +97,10 @@ Win32Exception::Win32Exception(int Error) : */ Win32Exception::~Win32Exception() throw() { +#ifndef OS2 if (m_MsgBuff) LocalFree(m_MsgBuff); +#endif } //------------------------------------------ @@ -106,6 +108,9 @@ Win32Exception::~Win32Exception() throw() */ const char* Win32Exception::what() const throw() { +#ifdef OS2 + return "Win32Exception!"; +#else FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | @@ -118,6 +123,7 @@ const char* Win32Exception::what() const throw() NULL); return reinterpret_cast<char*>(m_MsgBuff); +#endif } //------------------------------------------ |