From bde00816e24b14902ee005e61a9f1f83aafdbfd6 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 2 Nov 2007 12:11:26 +0000 Subject: 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. --- shell/source/all/zipfile/zipexcptn.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'shell/source/all/zipfile') 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(m_MsgBuff); +#endif } //------------------------------------------ -- cgit