Related: #i124896# Remove Allocator from sal, too
Change-Id: I3b1c7ccb523232433421def6622e2fc75348ec5f
This commit is contained in:
parent
e9c5f63f80
commit
71e5b1ba25
@ -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 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user