From 0ee03aaff580079dcf0aa82422088e63907a7731 Mon Sep 17 00:00:00 2001 From: Tino Rachui Date: Wed, 27 Mar 2002 09:41:14 +0000 Subject: #89491#check for Win2000 removed, always allocating a buffer of 32k if not otherwise specified --- fpicker/source/win32/folderpicker/MtaFop.hxx | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'fpicker/source/win32/folderpicker/MtaFop.hxx') diff --git a/fpicker/source/win32/folderpicker/MtaFop.hxx b/fpicker/source/win32/folderpicker/MtaFop.hxx index dc1562d33122..529aa4512887 100644 --- a/fpicker/source/win32/folderpicker/MtaFop.hxx +++ b/fpicker/source/win32/folderpicker/MtaFop.hxx @@ -2,9 +2,9 @@ * * $RCSfile: MtaFop.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: tra $ $Date: 2001-10-09 08:07:04 $ + * last change: $Author: tra $ $Date: 2002-03-27 10:41:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -92,17 +92,12 @@ class CAutoPathBuff public: CAutoPathBuff( size_t size = 0 ) { - if ( !size ) - { - if ( IsWin2000( ) ) - size = 32000; // max path length under Win2000 - else - size = MAX_PATH; - } - - pBuff = new sal_Unicode[ size ]; - OSL_POSTCOND( pBuff, \ - "Could not allocate path buffer" ); + if (0 == size) + size = 32000; // max path length under Win2000 + + pBuff = new sal_Unicode[size]; + + OSL_POSTCOND(pBuff,"Could not allocate path buffer"); } ~CAutoPathBuff( ) -- cgit