Kaydet (Commit) a81dca11 authored tarafından David Tardon's avatar David Tardon

WaE: declaration of 'aTmpPath' shadows a previous local

üst 9235d38a
......@@ -2504,16 +2504,16 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str
}
else
{
::osl::LongPathBuffer< sal_Char > aTmpPath( MAX_LONG_PATH );
::osl::LongPathBuffer< sal_Char > aTmpPath2( MAX_LONG_PATH );
int n;
if ((n = WideCharToMultiByte(
CP_ACP,0, ::osl::mingw_reinterpret_cast<LPCWSTR>(aPath), -1, aTmpPath,
aTmpPath.getBufSizeInSymbols(), NULL, NULL))
CP_ACP,0, ::osl::mingw_reinterpret_cast<LPCWSTR>(aPath), -1, aTmpPath2,
aTmpPath2.getBufSizeInSymbols(), NULL, NULL))
> 0)
{
strcpy(aTmpPath + n, SVERSION_USER);
if (access(aTmpPath, 0) >= 0)
strcpy(aTmpPath2 + n, SVERSION_USER);
if (access(aTmpPath2, 0) >= 0)
{
dwPathLen += MultiByteToWideChar(
CP_ACP, 0, SVERSION_USER, -1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment