[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sal/osl

Herbert Dürr hdu at apache.org
Fri May 16 15:07:51 PDT 2014


 sal/osl/w32/module.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 48acb3ebd9403a95b3bbd906d45bb67b4410f3e4
Author: Herbert Dürr <hdu at apache.org>
Date:   Fri May 16 20:11:36 2014 +0000

    #i124896# use default allocator for w32 ShortPathName buffer

diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index afbb8b6..2d1c0f3 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -74,7 +74,7 @@ oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 nRtldMod
     //on Windows XP and ERROR_INSUFFICIENT_BUFFER on Windows 7 (64bit)
     if (hInstance == NULL && Module->length > 260)
     {
-        std::vector<WCHAR, rtl::Allocator<WCHAR> > vec(Module->length + 1);
+        std::vector<WCHAR> vec(Module->length + 1);
         DWORD len = GetShortPathNameW(reinterpret_cast<LPCWSTR>(Module->buffer),
                                       &vec[0], Module->length + 1);
         if (len )


More information about the Libreoffice-commits mailing list