diff options
author | David Tardon <dtardon@redhat.com> | 2013-03-27 11:54:39 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-03-27 17:08:09 +0100 |
commit | 97272121d514b613965e7da1f8d138440b25444b (patch) | |
tree | 99cb8e07bb598eb80b167b9013d3978751bc8bf3 /desktop/win32 | |
parent | ede96bce22d7394f14cd9d5674e8a5cc63e5c473 (diff) |
WaE: declaration shadows a previous local
Change-Id: I675c76206eefa447084454f345fbdeb11760cd08
Diffstat (limited to 'desktop/win32')
-rw-r--r-- | desktop/win32/source/officeloader/officeloader.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx index 69ec7f826e7b..63cc0cc595e1 100644 --- a/desktop/win32/source/officeloader/officeloader.cxx +++ b/desktop/win32/source/officeloader/officeloader.cxx @@ -304,13 +304,13 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int ) fSuccess = WriteFile( hPipe, "", 1, &dwBytesWritten, NULL ); if ( fSuccess ) { - DWORD dwBytesRead = 0; - char *pBuffer = (char *)_alloca( sizeof(PIPE_TERMINATION_SEQUENCE) ); - fSuccess = ReadFile( hPipe, pBuffer, sizeof(PIPE_TERMINATION_SEQUENCE) - 1, &dwBytesRead, NULL ); + DWORD dwBytesRead2 = 0; + char *pBuffer2 = (char *)_alloca( sizeof(PIPE_TERMINATION_SEQUENCE) ); + fSuccess = ReadFile( hPipe, pBuffer2, sizeof(PIPE_TERMINATION_SEQUENCE) - 1, &dwBytesRead2, NULL ); if ( fSuccess ) { - pBuffer[dwBytesRead] = 0; - if ( 0 != strcmp( PIPE_TERMINATION_SEQUENCE, pBuffer ) ) + pBuffer2[dwBytesRead2] = 0; + if ( 0 != strcmp( PIPE_TERMINATION_SEQUENCE, pBuffer2 ) ) fSuccess = FALSE; } } |