Related: #i124896# Remove Allocator from sal, too

Change-Id: I3b1c7ccb523232433421def6622e2fc75348ec5f
This commit is contained in:
Thomas Arnhold 2014-05-15 16:55:58 +02:00
parent e9c5f63f80
commit 71e5b1ba25

View File

@ -69,7 +69,7 @@ oslModule SAL_CALL osl_loadModule(rtl_uString *strModuleName, sal_Int32 /*nRtldM
//on Windows XP and ERROR_INSUFFICIENT_BUFFER on Windows 7 (64bit) //on Windows XP and ERROR_INSUFFICIENT_BUFFER on Windows 7 (64bit)
if (h == NULL && Module->length > 260) if (h == 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), DWORD len = GetShortPathNameW(reinterpret_cast<LPCWSTR>(Module->buffer),
reinterpret_cast<LPWSTR>(&vec[0]), Module->length + 1); reinterpret_cast<LPWSTR>(&vec[0]), Module->length + 1);
if (len ) if (len )