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

WaE: declaration of 'n' shadows a previous local

üst 2b39d812
...@@ -2302,11 +2302,11 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str ...@@ -2302,11 +2302,11 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str
else else
{ {
::osl::LongPathBuffer< sal_Char > aTmpPath( MAX_LONG_PATH ); ::osl::LongPathBuffer< sal_Char > aTmpPath( MAX_LONG_PATH );
int n; int nLen = 0;
if ((n = WideCharToMultiByte(CP_ACP,0, ::osl::mingw_reinterpret_cast<LPCWSTR>(aPath), -1, aTmpPath, aTmpPath.getBufSizeInSymbols(), NULL, NULL)) > 0) if ((nLen = WideCharToMultiByte(CP_ACP,0, ::osl::mingw_reinterpret_cast<LPCWSTR>(aPath), -1, aTmpPath, aTmpPath.getBufSizeInSymbols(), NULL, NULL)) > 0)
{ {
strcpy(aTmpPath + n, SVERSION_USER); strcpy(aTmpPath + nLen, SVERSION_USER);
if (access(aTmpPath, 0) >= 0) if (access(aTmpPath, 0) >= 0)
{ {
dwPathLen += MultiByteToWideChar( CP_ACP, 0, SVERSION_USER, -1, reinterpret_cast<LPWSTR>(aPath + dwPathLen), aPath.getBufSizeInSymbols() - dwPathLen ); dwPathLen += MultiByteToWideChar( CP_ACP, 0, SVERSION_USER, -1, reinterpret_cast<LPWSTR>(aPath + dwPathLen), aPath.getBufSizeInSymbols() - dwPathLen );
......
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